[
https://issues.apache.org/jira/browse/SOLR-6202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maciej Zasada updated SOLR-6202:
--------------------------------
Attachment: SOLR-6202.patch
Hi [~hossman], [~joel.bernstein]
I'd like to summit a patch for this issue. I tried to make changes accordingly
to your suggestions:
* default parser for {{rq}} is {{ReRankQParser}}
* {{reRankQuery}} local param is deprecated in favour of using {{v}}
* query is parsed using {{subQuery()}}
I duplicated rerank tests so they use simplified syntax as well. If you have
any suggestions, I'm more than happy to hear them.
Cheers,
Maciej
> 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
> Attachments: SOLR-6202.patch
>
>
> 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]