1

升级到 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)
...

原帖:http ://www.datastax.com/support-forums/topic/dse-migration-30311-solr-schema-parsing-failed-invalid-field-property-positionincrementgap

4

1 回答 1

3

DSE 3.1 升级到 Solr 4.3,其中包括更好的模式验证。换句话说,在旧版本的 Solr 中,不可接受的属性被默默地忽略,而现在它们是致命错误。

在这种特殊情况下,positionIncrementGap 属性属于 fieldType 而不是字段。但更一般地说,您应该仔细查看您的架构。

感谢杰克的原始答案。

斯文

于 2013-08-31T00:44:56.770 回答