Organizational Research By

Surprising Reserch Topic

how to Solr data reindex all docs ?

asked Sep 22, 2013 in SOLR by rajesh
0 votes

Related Hot Questions

1 Answer

0 votes
First of all, dumping the results of a query may not give you the original data if you have fields that are indexed and not stored. In general, it is best to keep a copy of the input to SOLR in a form that you can easily use to rebuild indexes from scratch if you need to. In that case, just run a delete query by posting *:* then and then . After that your index is empty and you can add new documents that use the new schema.
But you may be able to get away with just running after you restart SOLR with the new schema file. It would be good to have a backup where you can test that it works for your configuration.
There is a tool called Luke that can be used to browse and export Lucene indexes. I have never tried it myself, but it might be able to help you export your data so that you can reimport it.
answered Sep 22, 2013 by rajesh