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

empty SimpleQueryParser query should return empty BooleanQuery

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0
    • 5.1, 6.0
    • modules/queryparser
    • None
    • New

    Description

      In order to be consistent with QueryParser, SimpleQueryParser should return an empty BooleanQuery instead of null when the analyzed query state is null (if the query text is entirely removed during analysis, for instance).

      Long term it would also be nice to be able to return a MatchNoDocsQuery (or something like that) instead of using null as a stand-in value for this.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dakrone Lee Hinman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment