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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2, 4.3
    • 4.3.1, 4.4, 6.0
    • None
    • 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

              uschindler Uwe Schindler
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: