Paul
Paul

Reputation: 319

Adding indexed non-stored fields to schema

I added a new field in my schema that is indexed but not stored, so that I can copy another field into it. Do I still have to re-index all the documents because of this schema change? Or can I just restart my solr server? I looks like I have to re-index all documents since sorting on that new non-stored field is giving me unexpected results, but I would like a confirmation on that.

Upvotes: 0

Views: 147

Answers (2)

Fuxi
Fuxi

Reputation: 5488

Yes, you have to run indexer to actually fill in the data to that filed

Upvotes: 0

Matej
Matej

Reputation: 7627

You have to full re-index. As schema change can contain different IndexAnalyzers Solr can't apply schema changes by itself.

Upvotes: 1

Related Questions