Lucene - Core
  1. Lucene - Core
  2. LUCENE-2261

configurable MultiTermQuery TopTermsScoringBooleanRewrite pq size

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      MultiTermQuery has a TopTermsScoringBooleanRewrite, that uses a priority queue to expand the query to the top-N terms.

      currently N is hardcoded at BooleanQuery.getMaxClauseCount(), but it would be nice to be able to set this for top-N MultiTermQueries: e.g. expand a fuzzy query to at most only the 50 closest terms.

      at a glance it seems one way would be to expose TopTermsScoringBooleanRewrite (it is private right now) and add a ctor to it, so a MultiTermQuery can instantiate one with its own limit.

      1. LUCENE-2261.patch
        10 kB
        Robert Muir
      2. LUCENE-2261.patch
        10 kB
        Robert Muir
      3. LUCENE-2261.patch
        10 kB
        Robert Muir
      4. LUCENE-2261.patch
        4 kB
        Robert Muir
      5. LUCENE-2261.patch
        3 kB
        Robert Muir

        Issue Links

          Activity

          Robert Muir created issue -
          Robert Muir made changes -
          Field Original Value New Value
          Attachment LUCENE-2261.patch [ 12435594 ]
          Robert Muir made changes -
          Attachment LUCENE-2261.patch [ 12435595 ]
          Robert Muir made changes -
          Attachment LUCENE-2261.patch [ 12435599 ]
          Robert Muir made changes -
          Attachment LUCENE-2261.patch [ 12435600 ]
          Robert Muir made changes -
          Link This issue blocks LUCENE-2089 [ LUCENE-2089 ]
          Robert Muir made changes -
          Assignee Robert Muir [ rcmuir ]
          Robert Muir made changes -
          Attachment LUCENE-2261.patch [ 12435776 ]
          Robert Muir made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s Flex Branch [ 12314439 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Workflow jira [ 12498735 ] Default workflow, editable Closed status [ 12564226 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12564226 ] jira [ 12583995 ]
          Gavin made changes -
          Link This issue blocks LUCENE-2089 [ LUCENE-2089 ]
          Gavin made changes -
          Link This issue is depended upon by LUCENE-2089 [ LUCENE-2089 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Robert Muir
              Reporter:
              Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development