2013-08-31 30 views
1

升級到3.1.1 DSE發佈以前的工作schema.xml中和solrconfig.xml中,創造的核心,我們得到這樣一個異常後:DataStax企業遷移到3.1:Solr模式解析失敗:無效的字段屬性

<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

回答

3

DSE 3.1升級到Solr 4.3,其中包括更好的模式驗證。換句話說,舊版本的Solr不可接受的屬性被默默地忽略,而現在它們是致命的錯誤。

在這種特殊情況下,positionIncrementGap屬性屬於fieldType而不是字段。但更一般地說,您應該仔細查看您的模式。

感謝傑克的原始答案。

Sven