我编写一个Solr查询:
q=(title:hello)^1000 ((title_phone:hello) NOT (title_exact:hello))^100 (title_exact:hello)
结果是:
{
"id":"f120de82-707c-11ea-b4ba-0242ac120003",
"score":4673.2656
}, {
"id":"f149f978-707c-11ea-b4ba-0242ac120003",
"score":416.34167
}, {
"id":"f120f235-707c-11ea-b4ba-0242ac120003",
"score":3.0775518
}, {
"id":"f120f5d3-707c-11ea-b4ba-0242ac120003",
"score":3.0775518
}
如何折叠或按成绩范围分组结果。例如:
"score: [1000 TO *]": [
{
"id":"f120de82-707c-11ea-b4ba-0242ac120003",
"score":4673.2656
}
],
"score: [100 TO 1000]": [
...
],
...