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

Add oal.util.Version ctor to QueryParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9, 3.0
    • 2.9.1
    • None
    • None
    • New

    Description

      This is a followup of LUCENE-1987:

      If somebody uses StandardAnalyzer with Version.LUCENE_CURRENT and then uses QueryParser, phrase queries will not work, because the StopFilter enables position Increments for stop words, but QueryParser ignores them per default. The user has to explicitely enable them.

      This issue would add a ctor taking the Version constant and automatically enable this setting. The same applies to the contrib queryparser. Eventually also StopAnalyzer should add this version ctor.

      To be able to remove the default ctor for 3.0 (to remove a possible trap for users of QueryParser), it must be deprecated and the new one also added to 2.9.1.

      Attachments

        1. LUCENE-2002.patch
          269 kB
          Michael McCandless
        2. LUCENE-2002-29.patch
          100 kB
          Michael McCandless
        3. LUCENE-2002-29.patch
          93 kB
          Michael McCandless
        4. LUCENE-2002-29.patch
          21 kB
          Michael McCandless
        5. LUCENE-2002-29-wrongdefault.patch
          2 kB
          Uwe Schindler

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: