[ https://issues.apache.org/jira/browse/SOLR-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17313356#comment-17313356 ]
Chris M. Hostetter commented on SOLR-15307: ------------------------------------------- techproducts example showing the problem... {noformat} hossman@slate:~$ curl 'http://localhost:8983/solr/techproducts/elevate?q=ipod&fl=id,score,[elevated]' { "responseHeader":{ "status":0, "QTime":0, "params":{ "q":"ipod", "fl":"id,score,[elevated]"}}, "response":{"numFound":3,"start":0,"maxScore":1.4832244,"numFoundExact":true,"docs":[ { "id":"IW-02", "score":1.4832244, "[elevated]":false}, { "id":"F8V7067-APL-KIT", "score":1.069923, "[elevated]":false}, { "id":"MA147LL/A", "score":0.4898033, "[elevated]":false}] }} hossman@slate:~$ curl 'http://localhost:8983/solr/techproducts/elevate?q=ipod&fl=id,score,[elevated]&elevateIds=F8V7067-APL-KIT' { "responseHeader":{ "status":0, "QTime":6, "params":{ "q":"ipod", "fl":"id,score,[elevated]", "elevateIds":"F8V7067-APL-KIT"}}, "response":{"numFound":3,"start":0,"maxScore":1.4832244,"numFoundExact":true,"docs":[ { "id":"F8V7067-APL-KIT", "score":1.069923, "[elevated]":true}, { "id":"IW-02", "score":1.4832244, "[elevated]":false}, { "id":"MA147LL/A", "score":0.4898033, "[elevated]":false}] }} hossman@slate:~$ curl 'http://localhost:8983/solr/techproducts/elevate?q=ipod&fl=id,score,[elevated]&elevateIds=F8V7067-APL-KIT&sort=id+desc' { "responseHeader":{ "status":0, "QTime":2, "params":{ "q":"ipod", "fl":"id,score,[elevated]", "elevateIds":"F8V7067-APL-KIT", "sort":"id desc"}}, "response":{"numFound":3,"start":0,"maxScore":1.4832244,"numFoundExact":true,"docs":[ { "id":"MA147LL/A", "score":0.4898033, "[elevated]":false}, { "id":"IW-02", "score":1.4832244, "[elevated]":false}, { "id":"F8V7067-APL-KIT", "score":1.069923, "[elevated]":true}] }} hossman@slate:~$ curl 'http://localhost:8983/solr/techproducts/elevate?q=ipod&fl=id,score,[elevated]&elevateIds=F8V7067-APL-KIT&sort=id+desc&forceElevation=true' { "responseHeader":{ "status":0, "QTime":2, "params":{ "q":"ipod", "forceElevation":"true", "fl":"id,score,[elevated]", "elevateIds":"F8V7067-APL-KIT", "sort":"id desc"}}, "response":{"numFound":3,"start":0,"maxScore":1.4832244,"numFoundExact":true,"docs":[ { "id":"F8V7067-APL-KIT", "score":1.069923, "[elevated]":true}, { "id":"MA147LL/A", "score":0.4898033, "[elevated]":false}, { "id":"IW-02", "score":1.4832244, "[elevated]":false}] }} hossman@slate:~$ curl 'http://localhost:8983/solr/techproducts/elevate?q=ipod&fl=id,score,[elevated]&elevateIds=F8V7067-APL-KIT&sort=score+desc&forceElevation=true' { "responseHeader":{ "status":0, "QTime":2, "params":{ "q":"ipod", "forceElevation":"true", "fl":"id,score,[elevated]", "elevateIds":"F8V7067-APL-KIT", "sort":"score desc"}}, "response":{"numFound":3,"start":0,"maxScore":1.4832244,"numFoundExact":true,"docs":[ { "id":"F8V7067-APL-KIT", "score":1.069923, "[elevated]":true}, { "id":"IW-02", "score":1.4832244, "[elevated]":false}, { "id":"MA147LL/A", "score":0.4898033, "[elevated]":false}] }} hossman@slate:~$ curl 'http://localhost:8983/solr/techproducts/elevate?q=ipod&fl=id,score,[elevated]&elevateIds=F8V7067-APL-KIT&sort=score+asc&forceElevation=true' { "responseHeader":{ "status":0, "QTime":1, "params":{ "q":"ipod", "forceElevation":"true", "fl":"id,score,[elevated]", "elevateIds":"F8V7067-APL-KIT", "sort":"score asc"}}, "response":{"numFound":3,"start":0,"maxScore":1.4832244,"numFoundExact":true,"docs":[ { "id":"MA147LL/A", "score":0.4898033, "[elevated]":false}, { "id":"IW-02", "score":1.4832244, "[elevated]":false}, { "id":"F8V7067-APL-KIT", "score":1.069923, "[elevated]":true}] }} {noformat} > QueryElevationComponent forceElevation=true behaves oddly when "sort=score > asc" > ------------------------------------------------------------------------------- > > Key: SOLR-15307 > URL: https://issues.apache.org/jira/browse/SOLR-15307 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Chris M. Hostetter > Priority: Minor > > This is a very atypical usecase that i doubt impacts any actual users but > popped up when i was working on some randomized testing so i wanted to file > it for general knowledge/tracking... > * QEC typically only elevates documents if the sort starts with {{score desc}} > * {{forceElevation=true}} is suppose to ensure that elevated docs appear > "first" in the results, even if some other primary sort is used > * in the -- very unlikely -- case that {{score asc}} is used as the primary > sort, {{forceElevation=true}} does not work -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org