Frage

I am new to Solr and i need to know whether i am thinking correct about Solr and MySQL relation or not.

  1. We index data from MySQL to Solr for once and then all add,edit,delete, update queries etc are implemented on Solr and MySQL got no change meanwhile. If we need to update MySQL as well, we will have to export (or some thing like that) from Solr to MySQL to keep MySQL up to date.
    Am i thinking Right?
  2. We only need to index those tables of MySQL on Solr which need search, not all MySQL data?
    Am i thinking Right again?
War es hilfreich?

Lösung

Qn 1. Usual case is that your main data store is MySQL, so Solr is the one that lags. One can either use the data import handler or write custom indexing programs to get data from MySQL to Solr.

Qn 2. Along with the fields you want to search (which are indexed fields), you can also keep non-indexed stored fields in Solr. This will help you build your data from Solr itself, without doing a secondary DB query.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top