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

Add MatchNoDocsQuery that matches no documents

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0
    • 5.1, 6.0
    • core/search
    • None
    • New

    Description

      As a followup to LUCENE-6298, it would be nice to have an explicit MatchNoDocsQuery to indicate that no documents should be matched. This would hopefully be a better indicator than a BooleanQuery with no clauses or (even worse) null.

      Attachments

        1. LUCENE-6304.patch
          13 kB
          Lee Hinman
        2. LUCENE-6304.patch
          7 kB
          Lee Hinman
        3. LUCENE-6304.patch
          7 kB
          Lee Hinman
        4. LUCENE-6304.patch
          9 kB
          Lee Hinman

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: