Integrate solr with mySql

How can I integrate solr with mysql. I deployed the solr server and that’s all, so what do I need to do to perform a search?

+6
source share
1 answer

Here is ans

First you need to do a full import, which will index all the data in the database (indexing will speed up the search). Full import can be started by clicking on the URL below in the browser.

http://localhost:8983/solr/dataimport?command=full-import 

If the database is so large, and if we perform a full import several times, it will take a long time to avoid partial import by clicking below the URL

 localhost:8983/solr/dataimport?command=delta-import 

When the delta-import command is executed, it reads the start time stored in conf / dataimport.properties. It uses this timestamp to start delta queries and, upon completion, updates the timestamp in conf / dataimport.properties

After completing the import, our solr is ready to search, we can just click on it

 http://localhost:8983/solr/select/?q=chair&version=2.2&start=0&rows=10&indent=on 

url in the browser to get the result (here I am looking for chairs, it will return 10 results)

+7
source

Source: https://habr.com/ru/post/888286/


All Articles