Lucene - Core
  1. Lucene - Core
  2. LUCENE-1860

switch MultiTermQuery to "constant score auto" rewrite by default

    Details

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

      Description

      Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.

      The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery. FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

      1. LUCENE-1860.patch
        9 kB
        Michael McCandless

        Activity

        Hide
        Uwe Schindler added a comment -

        If we change this, should we keep the good old RangeQuery as it is (boolean rewrite)? Because there is also the deprecated ConstantScoreRangeQuery.

        Show
        Uwe Schindler added a comment - If we change this, should we keep the good old RangeQuery as it is (boolean rewrite)? Because there is also the deprecated ConstantScoreRangeQuery.
        Hide
        Michael McCandless added a comment -

        should we keep the good old RangeQuery as it is (boolean rewrite)? Because there is also the deprecated ConstantScoreRangeQuery.

        I think we should? That's what it is right now (and the patch leaves it).

        Show
        Michael McCandless added a comment - should we keep the good old RangeQuery as it is (boolean rewrite)? Because there is also the deprecated ConstantScoreRangeQuery. I think we should? That's what it is right now (and the patch leaves it).

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development