Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Solr with MySQL

I was browsing some questions here concerning MySQL and faceted searches and I saw one response that suggested the use of Solr.

In my MySQL database, I have many tables for products, suppliers, messages, users, etc - all interconnected. How would I use Solr to do faceted searches for products? From what I understand, I'd have to keep feeding Solr product data from MySQL - but how do I deal with indexing the data? Do index right after adding a new product? Do I batch index? How do I deal with Solr accurately representing data that is found in my MySQL database? (inserts, deletes, etc)

Thanks in advance.

like image 739
RS71 Avatar asked Jan 05 '11 13:01

RS71


1 Answers

Take a look at data import handler. Apart from batch update you can also trigger update by calling update request handler. You would have to call it from your application but you can also create your own custom update request handler that would fit your needs.

like image 174
jarekrozanski Avatar answered Nov 13 '22 18:11

jarekrozanski