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

empty SimpleQueryParser query should return empty BooleanQuery

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

        1. LUCENE-6298.patch
          4 kB
          Lee Hinman
        2. LUCENE-6298.patch
          3 kB
          Lee Hinman

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: