Basically, you will use solr’s DataImportHandler to do the importing.
- Hit http://solr-server:port/solr/db/dataimport?command=full-import to do a full import.
- Hit http://solr-server:port/solr/dataimport?command=delta-import to do a delta import
So, what’s the delta? This is configured in some data-config.xml:
deltaQuery="select id from item where last_modified > '${dih.last_index_time}'"
So it requires the table on your database must have a column called "last_modified" .