简体   繁体   中英

Solr search engine Updating document

I'm using solr search engine.I'm new to this. I want to update data automatically every time when my database getting update or new data created in the tables.I tried delta import and full import.In these method I have to do it manually when ever I need to update.

Which way is best for update solr document.?

How to make it automatically?

Thanks for your help.

There isn't a built in way to do this using Solr. I wouldn't recommend running a full or delta import when just updating one row in a table. What most Solr deployments do with a database is update the corresponding document when updating a row. This will be application specific, but this is the most efficient and standard way of dealing with this issue.

Using full or delta imports would be something that would run nightly or every few hours typically.

So, basically you want to process document before adding in solr.

This can be achieved by adding new update processor in update process chain you can go through : Solr split joined dates to multivalue field .
Here they split data in a field and saved it as multi valued field

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM