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

empty SimpleQueryParser query should return empty BooleanQuery

    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

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: