升级到DSE 3.1.1后,发布了以前正在运行的schema.xml和solrconfig.xml并创建了核心,我们得到了这样的异常:
<lst name="responseHeader">
<int name="status">500</int>
<int name="QTime">303</int>
</lst>
<lst name="error">
<str name="msg">Schema Parsing Failed: Invalid field property: positionIncrementGap</str>
<str name="trace">org.apache.solr.common.SolrException: Schema Parsing Failed: Invalid field property: positionIncrementGap
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:687)
at com.datastax.bdp.cassandra.index.solr.CassandraIndexSchema.readSchema(CassandraIndexSchema.java:48)
...
答案 0 :(得分:3)
DSE 3.1升级到Solr 4.3,其中包括更好的架构验证。换句话说,在Solr的旧版本中,无法接受的属性被忽略,而现在它们是致命的错误。
在这种特殊情况下,positionIncrementGap属性属于fieldType而不是field.But更一般地说,你应该仔细查看你的模式。
感谢杰克的原始答案。
斯文