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

Groupby query reports null pointer when unique key is not stored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.4.1
    • None
    • Grouping, query
    • None

    Description

      Group by query is failing with the following error message. It looks like TopGroupsResultTransformer.java  retrieveDocument method is fetching doc based on id is calling a stored field visitor method. I tried setting the "id" field to use doc values as they are enabled "useDocValuesAsStored:true" but this didn't help. 
       
       
      Error message - 
      java.lang.NullPointerException: Cannot invoke "org.apache.lucene.index.IndexableField.stringValue()" because "f" is null => java.lang.NullPointerException: Cannot invoke "org.apache.lucene.index.IndexableField.stringValue()" because "f" is null at org.apache.solr.schema.FieldType.toExternal(FieldType.java:378) java.lang.NullPointerException: Cannot invoke "org.apache.lucene.index.IndexableField.stringValue()" because "f" is null at org.apache.solr.schema.FieldType.toExternal(FieldType.java:378) ~[?:?] at org.apache.solr.search.grouping.distributed.shardresultserializer.TopGroupsResultTransformer.serializeTopGroups(TopGroupsResultTransformer.java:238) ~[?:?]

      Attachments

        Activity

          People

            Unassigned Unassigned
            rajanimaski rajanimaski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: