Solr
  1. Solr
  2. SOLR-6088

Add query re-ranking with the ReRankingQParserPlugin

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9
    • Component/s: search
    • Labels:
      None

      Description

      This ticket introduces the ReRankingQParserPlugin which adds query Reranking/Rescoring for Solr. It leverages the new RankQuery framework to plug-in the new Lucene QueryRescorer.

      See ticket LUCENE-5489 for details on the use case.

      Sample syntax:

      q=*:*&rq={!rerank reRankQuery=$rqq reRankDocs=200 reRankWeight=3}
      

      In the example above the mainQuery is executed and 200 docs are collected and re-ranked based on the results of the reRankQuery.

      1. SOLR-6088.patch
        46 kB
        Joel Bernstein
      2. SOLR-6088.patch
        30 kB
        Joel Bernstein
      3. SOLR-6088.patch
        21 kB
        Joel Bernstein
      4. SOLR-6088.patch
        16 kB
        Joel Bernstein
      5. SOLR-6088.patch
        14 kB
        Joel Bernstein

        Issue Links

          Activity

          Hide
          Joel Bernstein added a comment -

          Initial patch.

          Show
          Joel Bernstein added a comment - Initial patch.
          Hide
          Joel Bernstein added a comment -

          Initial patch doesn't handle Explain properly, so this still needs to be hooked into the Lucene QueryRescorer explain.

          This patch also doesn't work with cursorMark deep paging, which would be a nice to get working if possible.

          Show
          Joel Bernstein added a comment - Initial patch doesn't handle Explain properly, so this still needs to be hooked into the Lucene QueryRescorer explain. This patch also doesn't work with cursorMark deep paging, which would be a nice to get working if possible.
          Hide
          Joel Bernstein added a comment -

          First crack at the ReRankQuery.explain().

          Show
          Joel Bernstein added a comment - First crack at the ReRankQuery.explain().
          Hide
          Joel Bernstein added a comment -

          New patch with all tests and precommit passing.

          Show
          Joel Bernstein added a comment - New patch with all tests and precommit passing.
          Hide
          Joel Bernstein added a comment -

          New patch supports the sort parameter for the main query and preserves query elevation (QueryElevationComponent).

          Show
          Joel Bernstein added a comment - New patch supports the sort parameter for the main query and preserves query elevation (QueryElevationComponent).
          Hide
          Joel Bernstein added a comment - - edited

          New patch, added tests for preserving document order when QueryElevationComponent is used in conjuction with ReRanking.

          Show
          Joel Bernstein added a comment - - edited New patch, added tests for preserving document order when QueryElevationComponent is used in conjuction with ReRanking.
          Hide
          ASF subversion and git services added a comment -

          Commit 1600720 from Joel Bernstein in branch 'dev/trunk'
          [ https://svn.apache.org/r1600720 ]

          SOLR-6088: Add query re-ranking with the ReRankingQParserPlugin

          Show
          ASF subversion and git services added a comment - Commit 1600720 from Joel Bernstein in branch 'dev/trunk' [ https://svn.apache.org/r1600720 ] SOLR-6088 : Add query re-ranking with the ReRankingQParserPlugin
          Hide
          ASF subversion and git services added a comment -

          Commit 1600760 from Joel Bernstein in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1600760 ]

          SOLR-6088: Add query re-ranking with the ReRankingQParserPlugin

          Show
          ASF subversion and git services added a comment - Commit 1600760 from Joel Bernstein in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1600760 ] SOLR-6088 : Add query re-ranking with the ReRankingQParserPlugin
          Hide
          ASF subversion and git services added a comment -

          Commit 1600765 from Joel Bernstein in branch 'dev/trunk'
          [ https://svn.apache.org/r1600765 ]

          SOLR-6088: Add query re-ranking with the ReRankingQParserPlugin

          Show
          ASF subversion and git services added a comment - Commit 1600765 from Joel Bernstein in branch 'dev/trunk' [ https://svn.apache.org/r1600765 ] SOLR-6088 : Add query re-ranking with the ReRankingQParserPlugin
          Hide
          ASF subversion and git services added a comment -

          Commit 1600767 from Joel Bernstein in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1600767 ]

          SOLR-6088: Add query re-ranking with the ReRankingQParserPlugin

          Show
          ASF subversion and git services added a comment - Commit 1600767 from Joel Bernstein in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1600767 ] SOLR-6088 : Add query re-ranking with the ReRankingQParserPlugin

            People

            • Assignee:
              Joel Bernstein
              Reporter:
              Joel Bernstein
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development