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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.1, 6.0
    • Component/s: modules/queryparser
    • Labels:
      None
    • Lucene Fields:
      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

            People

            • Assignee:
              Unassigned
              Reporter:
              dakrone Lee Hinman

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment