Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4877

SolrIndexSearcher#getDocSetNC should check for null return in AtomicReader#fields()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2, 4.3
    • Fix Version/s: 4.3.1, 4.4, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      In LUCENE-5023 it was reported that composite reader contexts should not contain null fields() readers. But this is wrong, as a null-fields() reader may contain documents, just no fields.

      fields() and terms() is documented to return null, so DocSets should check for null (like all queries do in Lucene). It seems that DocSetNC does not correctly check for null.

        Attachments

        1. SOLR-4877.patch
          0.7 kB
          Uwe Schindler
        2. SOLR-4877-nospecialcase.patch
          2 kB
          Uwe Schindler

          Issue Links

            Activity

              People

              • Assignee:
                thetaphi Uwe Schindler
                Reporter:
                thetaphi Uwe Schindler
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: