Hello everyone! I am new to Solr and Lucene and I would like to ask
you a couple of questions.

I am working on an existing system that has the data saved in a
Postgre DB and now I am trying to integrate Solr to use full-text
search and faceted search, but I am having a couple of doubts about
it.

1) I see two ways of storing the data and make the search:
- Duplicate all the DB data in Solr, so complete results are returned
from a search query, or...
- Put in Solr just the data that I need to search and, after finding
the elements with a Solr query, use the result to make a more specific
query to the DB.

Which is the way this is normally done?

2) How do I synchronize Solr and Postgre? Do I have to use the
DataImportHandler or when I do the INSERT command into Postgre, I have
to execute a command into Solr?

Thanks for your time!

Cheers!
Juan M.

Reply via email to