Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2261

configurable MultiTermQuery TopTermsScoringBooleanRewrite pq size

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • core/search
    • None
    • 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.

      Attachments

        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

            People

              rcmuir Robert Muir
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: