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

ExternalFileField/FileFloatSource throws NPE if keyField is Points based

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, 7.1, master (8.0)
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)

      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
          7 kB
          Steve Rowe
        2. SOLR-10846.patch
          3 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: