使用枢轴构面时,是否可以获取每个枢纽的前N个文档?

时间:2019-01-24 01:24:55

标签: solr facet faceted-search

我正在使用“数据透视面”,如下所述: https://lucene.apache.org/solr/guide/6_6/faceting.html#Faceting-CombiningStatsComponentWithPivots

我需要知道是否有可能使结果树中的每个叶子都获得前N个文档。

下面我要实现的链接中的示例是,为每个枢轴返回一个前N个文档的列表,如下所示。

当前结果:

memcpy(&my_packet_header.ip_dest.s_addr, destination_ip);

预期结果:

...
"pivot": [
    {
        "field": "inStock",
        "value": true,
        "count": 8,
        "stats": {
            "stats_fields": {
                "price": {
                    "min": 74.98999786376953,
                    "max": 399.0
                }
            }
        }
    },
    {
        "field": "inStock",
        "value": false,
        "count": 4,
        "stats": {
            "stats_fields": {
                "price": {
                    "min": 11.5,
                    "max": 649.989990234375
                }
            }
        }
    }
],
...

0 个答案:

没有答案