Is there a way to do something like
q=hello+world&rq={!rerank reRankQuery=$rqq
reRankDocs=100}&rqq=sort={!func}myFunc() desc ?
or even as simple as
1.
http://localhost:8983/solr/0/select?q=edgengram:abc&wt=json&indent=true&debugQuery=true&rq={!rerank
reRankQuery=$rqq reRankDocs=20}&rqq
Thank Joel!
This is exactly what I was looking for. I did not realize rerank was
extensible to your own Function Query. This is good.
--aj
On Fri, Sep 18, 2015 at 12:00 PM Joel Bernstein wrote:
> The syntax would be something like this:
>
> q=hello+world&rq={!rerank reRankQuery=$rqq
> reRankDoc
The syntax would be something like this:
q=hello+world&rq={!rerank reRankQuery=$rqq
reRankDocs=100}&rqq={!func}myFunc()
I'm not sure if there is a test case demonstrating this but it should work.
Joel Bernstein
http://joelsolr.blogspot.com/
On Fri, Sep 18, 2015 at 2:42 PM, Ajinkya Kale wrote:
Is there a way I can issue a regular query with q and then apply
functionQuery only on the top n documents of the result from q ?
Applying functionQuery on all documents will be very expensive in my case.
I am not able to find a way to "rerank" only top N documents using Function
Query.
--aj
On F
The ReRankQuery re-ranks the Top N documents of the main query based on a
query. Rather then the CustomScoreQuery you may want to look at ReRanking
by a Function Query using the FunctionQParserPlugin. This would allow you
to directly control the ReRankScore for the top N documents.
Writing your ow
Hi all,
I am new to Solr. I have a QParser plugin which uses an implementation
of CustomScoreQuery to provide custom score for each document.
Is there a way I can use the same plugin to provide score for top N
documents after an initial query/sort ?
I looked at the ReRankQParserPlugin but it looks