【问题标题】:How to sum multivalued field with facet In Solr 5.2如何在 Solr 5.2 中将多值字段与 facet 相加
【发布时间】:2015-07-22 06:38:58
【问题描述】:

我使用JSON Facet API

当我请求以下分面时。

facet: {
  depth1: {
    "method": "enum",
    "limit" : 30,
    "field" : "_srg9jrens_texts",
    "type" : "terms",
    "sort" : "index asc",
    "facet" : {
      "stats" : "sum(_45qotu8ef_doubles)"
    },
    "mincount" : 1
  }

它响应错误消息“不能在多值字段上使用 FieldCache:_45qotu8ef_doubles”

如您所见,“_45qotu8ef_doubles”字段是多值==true。

schema.xml

...
<dynamicField name="*_doubles" type="double" indexed="true" stored="true" multiValued="true"/>
...

我需要帮助来解决这个问题,尤其是我必须将其保持为多值。

请帮忙!

【问题讨论】:

    标签: solr aggregation facet


    【解决方案1】:

    我使用Nested document,而不是使用多值字段。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-31
      相关资源
      最近更新 更多