iNikkz
iNikkz

Reputation: 3819

If I change schema.xml then reIndex is neccessary in Solr or not?

I indexed 2GB of data. Now I want to change the type of field from textSpell to string type into schema.xml

Current Schema :

<field name="gram" type="textSpell" indexed="true" stored="true" required="true" multiValued="false"/>

Required Schema :

<field name="gram" type="string" indexed="true" stored="true" required="true" multiValued="false"/>

So, I need to reindex the whole data or there is any other way to reuse the same indexed data without losing it.

Upvotes: 0

Views: 472

Answers (1)

vandy
vandy

Reputation: 46

You will need to re-index the data. In some rare cases, you can get away without it. Since you're changing the field type, a re-index is highly recommended because the documents will need to be reanalyzed with their new field types in Solr.

Upvotes: 3

Related Questions