【问题标题】:Solr Spatial Search: "can not use FieldCache on multivalued field"Solr 空间搜索:“不能在多值字段上使用 FieldCache”
【发布时间】:2011-09-21 06:18:09
【问题描述】:

我从 Solr 收到这条消息。

我的 schema.xml 上的相关行将位置字段作为非多值字段,如下所示。

<field name="latlong_current" type="location" indexed="true" stored="false" omitNorms="true" multiValued="false" />

还有其他人使用空间搜索功能遇到过这种情况吗?

【问题讨论】:

  • 好久不见,Solr 4.8.x 支持这个功能吗??

标签: solr geospatial


【解决方案1】:

我没有使用位置字段类型,但我希望确保对该类型的分析不会将其分解为多个标记。显然有一个用于存储地理编码的 LatLonType,“位置”是否设置为那个?

否则,Solr 人员会在他们的邮件列表和 IRC 上真正响应,如果您在此处没有得到您想要的答案,请尝试那里!

【讨论】:

    【解决方案2】:

    如果您的 schema.xml 中有这些字段,请确保将它们设置为 multiValued=false

    <dynamicField name="*_coordinate"  type="tdouble" indexed="true"  stored="false" multiValued="false"/>
    <dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
    

    【讨论】:

      猜你喜欢
      • 2017-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-10
      • 2012-10-21
      • 2015-10-03
      相关资源
      最近更新 更多