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

ExternalFileField/FileFloatSource throws NPE if keyField is Points based

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 7.0, 7.1, 8.0
    • None

    Description

      FileFloatSource (and by extension ExternalFileField) currently throws an NPE if the keyField is Points based.

      This seems to be due to hardcoded assumptions about MultiFields.getTerms(...) returning a non-null value for the keyField (which I suspect could also lead to an NPE in situations where the index is completley empty? ... not sure)

      In general, the error handling in FileFloatSource should be improved.

      If there is no straight forward way to make FileFloatSource work with Point fields, then ExternalFileField should throw a clear error on init if the true==keyFieldType.isPointField()

      Attachments

        1. SOLR-10846.patch
          3 kB
          Steven Rowe
        2. SOLR-10846.patch
          7 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: