[ 
https://issues.apache.org/jira/browse/SOLR-6202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047855#comment-14047855
 ] 

Joel Bernstein commented on SOLR-6202:
--------------------------------------

These sound like good changes.

> Simplify the use of "rq" for query re-ranking
> ---------------------------------------------
>
>                 Key: SOLR-6202
>                 URL: https://issues.apache.org/jira/browse/SOLR-6202
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>
> It seems like there is some really easy tweaks we could make to the "rq" 
> (Re-Ranking Query) API to make it less verbose and easier to use:
> * in QueryComponent
> ** when parsing "rq", we should use "rerank" as the default parser
> *** should be a trivial change to the QParser.getParser when initializin 
> rqparser
> * in ReRankQParserPlugin
> ** we should deprecate/remove the "reRankQuery" local param and just use "v"
> *** this is the implicit param created when using the body of the query 
> string, or it can be explicit (to refer to variables)
> ** we should leverage subQuery() (just like NestedQParser does) so that 
> "defType" is respected when parsing the wrapped query
> Unless i'm overlooking something, the combination of these simple changes 
> should drastically simplify a lot of use cases...
> {noformat}
> BEFORE: rq={!rerank reRankQuery=$rqq}rqq=XXX
>  AFTER: rq=XXX
> BEFORE: rq={!rerank reRankQuery=$rqq reRankDocs=200}$rqq={!func}XXX
>  AFTER: rq={!reRankDocs=200 defType=func}XXX
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to