Does SchemaChange Reindex Require

If a change has been made to the Solr Schema configuration, do you always need to rebuild the index?

eg. if I changed the fieldtype of the field from general_text to a string. Do I need to rebuild the entire index or is there a shortcut?

+7
source share
2 answers

It depends on what you change,

Suppose you arbitrarily change the field name / type, this requires a re index, since the data must be parsed according to the new applicable parsing parser. The same can be said for adding or removing a field.

However, there may be a rare scenario where a re-index is not required. The thing is, if you change the query time analysis only for the field type. Since all the necessary changes to the analysis occur during the request, therefore, only a restart of the solr server is required.

+7
source

Changes to the circuit will require the Reindex collection.
You will need to reindex the content, since the analysis performed during indexing by field type will be different.
If you do not reindex, the query time analysis performed for the field will be different from the one that was indexed, and no matches will be found.

Also useful is How_can_I_rebuild_my_index_from_scratch_if_I_change_my_schema

+3
source

All Articles