【发布时间】:2013-04-10 14:17:47
【问题描述】:
我正在使用此示例查询按类别对结果集进行分组:
q=test&group=true&group.field=category
这按预期工作,我得到这个示例响应:
"response":
{"numFound":1,"start":0,"docs":[
{
...
}
{"numFound":6,"start":0,"docs":[
{
...
}
{"numFound":3,"start":0,"docs":[
{
...
}
但是,我找不到一种方法来指定组的排序顺序 每个组的文档数(“numFound 字段)。我认为“排序”参数 和它有关系,但我不知道如何使用它。
【问题讨论】: