Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6202

Simplify the use of "rq" for query re-ranking

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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...

      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
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            hossman Chris M. Hostetter

            Dates

              Created:
              Updated:

              Issue deployment