Grouping by Query

来源:互联网 发布:天刀清纯萝莉捏脸数据 编辑:程序博客网 时间:2024/06/10 15:08

In this example, we will use the parameter to find the top three results for “memory” in two group.query different price ranges: 0.00 to 99.99, and over 100.

http://localhost:8983/solr/techproducts/select?wt=json&indent=true&fl=name,price&q=memory&group=true&group.query=price:[0+TO+99.99]&group.query=price:[100+TO+*]&group.limit=3

这里写图片描述

In this case, Solr found five matches for “memory,” but only returns four results grouped by price. This is because one result for “memory” did not have a price assigned to it.

0 0
原创粉丝点击