Solr - how to “group by” and “limit”?

后端 未结 4 1563
悲哀的现实
悲哀的现实 2021-01-12 03:39

Say I indexed the following from my database:

======================================
| Id |  Code | Description           |
=================================         


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-12 03:46

    Have a look at field collapsing, available in Solr 4.0. Sorting groups on relevance: group.sort=score desc.

提交回复
热议问题