Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0
-
None
Description
When I use elevation together with grouping I got not the expected result order.
I tried it with the standard solr example:
but the results ignored the elevation:
{
"responseHeader":{
"status":0,
"QTime":2,
"params":{
"enableElevation":"true",
"fl":"score,[elevated],id,name",
"indent":"on",
"q":"ipod",
"forceElevation":"true",
"group.field":"manu",
"group":"on",
"wt":"json"}},
"grouped":{
"manu":{
"matches":2,
"groups":[{
"groupValue":"belkin",
"doclist":{"numFound":1,"start":0,"maxScore":0.7698604,"docs":[
]
}},
{
"groupValue":"inc",
"doclist":{"numFound":1,"start":0,"maxScore":0.28869766,"docs":[
]
}}]}}}
the elevate.xml defines the following rules :
<query text="ipod">
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
<doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
</query>
</elevate>