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

Regular expression syntax with MultiFieldQueryParser causes assert/NPE

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1, 4.2
    • 4.2.1, 6.0
    • core/queryparser
    • None
    • New

    Description

      Using regex syntax causes MultiFieldQueryParser.parse() to throw an AssertionError (if asserts are on) or causes subsequent searches using the returned Query instance to throw NullPointerException (if asserts are off). Simon Willnauer's comment on the java-user alias: "This is in-fact a bug in the MultiFieldQueryParser [...] MultifieldQueryParser should override getRegexpQuery but it doesn't"

      Attachments

        1. LUCENE-4878.patch
          3 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            adam@labkey.com Adam Rauch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: