Propagate data change from RDBMS to Solr

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" .

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.