在我的solr索引中,我有一个带有以下定义的字段标记 .

<field name="tags" type="string" indexed="true" stored="true" multiValued="true" />

我已经有了一个预定义的标签列表(a,b,c,d,e)和我,我想只对这些标签进行嵌套分面 .

top_tags:{
    type: terms,
    field: tags,
    limit: 5,
    facet:{
        type: terms,
        field: tags,
        limit: 5
    }
  }

当我应用上面嵌套的faceting时,它为前5个标签提供了嵌套的faceting输出,而不是为我的预定义标签提供 . 以下是输出 .

"top_tags":{
      "buckets":[{
          "val":"x",
          "count":10,
          "buckets":[
          {
            "val":"x",
            "count":10
          },
          {
                "val":"y",
                "count":5
         }
        ]}},

如何在json嵌套分面上应用过滤逻辑(类似facet查询)?