0
創建SolrCore'關聯'時出錯:無法創建核心[關聯]引起的:模式字段類型location_rpt(org.apache.solr.schema.SpatialRecursivePrefixTreeFieldType)無效參數:{units = degrees}這是錯誤當我嘗試添加一個新的核心。創建SolrCore模式字段類型時出錯
創建SolrCore'關聯'時出錯:無法創建核心[關聯]引起的:模式字段類型location_rpt(org.apache.solr.schema.SpatialRecursivePrefixTreeFieldType)無效參數:{units = degrees}這是錯誤當我嘗試添加一個新的核心。創建SolrCore模式字段類型時出錯
正如錯誤消息所述,SpatialRecursivePrefixTreeFieldType
類型沒有名爲units
的有效參數。這在模式中名爲location_rpt
的字段中引用。刪除參數(並找出它的原因,如果將來會導致任何問題 - 如果你不使用空間搜索,你應該很好去)。
您可以在社區wiki中找到the parameters accepted by SpatialRecursivePrefixTreeFieldType on the Spatial Search page。
我使用了其他集合,因爲我使用最新版本的solr。我只是複製並正確修改schema.xml solrconfig.xml和data-config.xml –