Description
Truncated Stack trace
Caused by: java.lang.NullPointerException at org.apache.lucene.util.BytesRef.compareTo(BytesRef.java:162) at org.apache.lucene.util.BytesRef.compareTo(BytesRef.java:36) at java.base/java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:52) at java.base/java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:47) at org.apache.lucene.util.ArrayTimSorter.compare(ArrayTimSorter.java:48) at org.apache.lucene.util.TimSorter.nextRun(TimSorter.java:109) at org.apache.lucene.util.TimSorter.sort(TimSorter.java:201) at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:452) at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:471) at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:479) at org.apache.lucene.search.TermInSetQuery.<init>(TermInSetQuery.java:85) at org.apache.lucene.search.TermInSetQuery.<init>(TermInSetQuery.java:107) at org.apache.solr.handler.component.ExpandComponent.getGroupQuery(ExpandComponent.java:746) at org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:330) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:328) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:198) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2583) at org.apache.solr.util.TestHarness.query(TestHarness.java:339) at org.apache.solr.util.TestHarness.query(TestHarness.java:321) at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:972)
This could happen when expand component is used without collapse and docs returned have fewer unique values