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

Add MatchNoDocsQuery that matches no documents

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.1, 6.0
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      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
          9 kB
          Lee Hinman
        2. LUCENE-6304.patch
          7 kB
          Lee Hinman
        3. LUCENE-6304.patch
          7 kB
          Lee Hinman
        4. LUCENE-6304.patch
          13 kB
          Lee Hinman

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: