如果我更改 schema.xml 那么在 Solr 中是否需要 reIndex?

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

索引 2GB 的数据。现在我想 change fieldtypetextSpellstring 输入 schema.xml

当前架构:

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

所需架构:

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

所以,我需要重新索引整个数据或者有任何其他方法重用 相同的索引数据 而不会丢失。

您需要重新索引数据。在极少数情况下,您可以在没有它的情况下逃脱。由于您要更改字段类型,因此强烈建议重新索引,因为需要在 Solr 中使用新字段类型重新分析文档。