Search code examples
solrrdbmssolrjdataimporthandler

How to set Data Import Handler and Scheduler using solrJ Client


I am new to solr search, i have completed a simple search.

Now I want to index documents directly from Database and want set scheduler or trigger for updating index when there is any change in DB.

I know that I can do it with DataImportHandler but can't understand its flow.

can you help me that from which steps I should have to start this process?

or can anyone just give me pointers to do this ??

I want to do this all things using SolrJ client.


Solution

  • try to do simple edit and delete function on button click event and send the id with that url in servlet and do your jdbc opertaion

    after that successfully commited, call your data import command from solrj and redirect it to your index page

    thats it.