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

Regular expression syntax with MultiFieldQueryParser causes assert/NPE

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1, 4.2
    • Fix Version/s: 4.2.1, 6.0
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

            • Assignee:
              simonw Simon Willnauer
              Reporter:
              adam@labkey.com Adam Rauch

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment