You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Joel Nothman <jn...@student.usyd.edu.au> on 2011/10/30 23:47:21 UTC
Return the ranks of selected documents
I would like to evaluate the recall of a selection of documents in Solr
(at different ranks/limits), given varying queries.
Ideally this means that for a given query, I would like Solr just to
return the ranks of selected unique keys within the results.
Is there a way to do this apart from iterating through the results on the
client-side?
So far I have only been told it is an unusual question on StackOverflow:
http://stackoverflow.com/questions/7924146
Thanks,
- Joel
Re: Return the ranks of selected documents
Posted by Chris Hostetter <ho...@fucit.org>.
: Ideally this means that for a given query, I would like Solr just to return
: the ranks of selected unique keys within the results.
If i understand you correctly, given a query MY_QUERY and a set of IDs
(ID1, ID2, ID3, etc...) you would like to know the score of those IDs
against that query?
that's fairly straight forward...
?q=MY_QUERY&fq=id:(ID1 ID2 ID3 ...)
-Hoss