简体   繁体   English

每次在solrconfig.xml或schema.xml中添加任何更改时,是否都应该重新导入数据?

[英]Should we re-import data every time we add any changes in solrconfig.xml or schema.xml?

I have added few changes in schema.xml file to match the results for words like "Sachintendulkar" , this should show results for "Sachin Tendulkar" by simply changing catenateAll="0" to 1 in the following filter: 我在schema.xml文件中添加了一些更改,以匹配“ Sachintendulkar”之类的单词的结果,只需在以下过滤器中将catenateAll catenateAll="0"更改为1 ,即可显示“ Sachin Tendulkar”的结果:

<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="0" catenateAll="1" splitOnCaseChange="1"/>

My question is, everytime I make any change in schema.xml file, do I need to re-import data? 我的问题是, 每当我对schema.xml文件进行任何更改时,都需要重新导入数据吗?

I am using Solr API . 我正在使用Solr API

Not necessarily for all changes in schema.xml, but for changes like the one you mention, that affect what data is indexed, then yes, you need to re-import the data. 不一定要对schema.xml中的所有更改进行更改,但是对于您提到的那些更改(这些更改会影响索引的数据),是的,您需要重新导入数据。

You could make changes that affect how requests are processed, and then you wouldn't need to re-index the data. 您可以进行更改以影响请求的处理方式,然后就无需重新索引数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM