Lucene - Core
  1. Lucene - Core
  2. LUCENE-1557

Make constant-score rewrite the default for multi-term queries

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.4.1
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      For queries that expand to multiple terms (PrefixQuery, RangeQuery, FuzzyQuery, WildcardQuery), the default now is to rewrite to a BooleanQuery, which scales poorly, and can hit the dreaded TooManyClauses (ungraceful degradation).

      Except for FuzzyQuery (which we should fix with this issue), they all support setConstantScoreRewrite, which scales better.

      In 3.0 we should make constantScoreRewrite the default, and leave an option to turn it off.

      This is a spinoff from LUCENE-998.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Uwe Schindler
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development