Hi, We are trying to upgrade from Solr 4.8 to Solr 6.2.
This query: ?q=*%3A*&start=0&rows=2&wt=json&indent=true&group=true&group.field=mediaObjectId&facet=true&facet.field=rating&group.facet=true is returning the following error: null:org.apache.solr.common.SolrException: Exception during facet.field: rating at org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:739) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.solr.request.SimpleFacets$2.execute(SimpleFacets.java:672) ... Caused by: java.lang.IllegalStateException: unexpected docvalues type NUMERIC for field 'mediaObjectId' (expected=SORTED). Re-index with correct docvalues type. at org.apache.lucene.index.DocValues.checkField(DocValues.java:212) at org.apache.lucene.index.DocValues.getSorted(DocValues.java:264) at org.apache.lucene.search.grouping.term.TermGroupFacetCollector$SV.doSetNextReader(TermGroupFacetCollector.java:128) ... The same query without the group.facet=true option does not give an error. On Solr 4.8 the query did not give problems. The relevant fields are configured as follows: <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/><field name="rating" type="double" indexed="true" stored="true" multiValued="false" /><field name="mediaObjectId" type="long" indexed="true" stored="true" multiValued="false" /> Am I doing anything wrong, or do you have any suggestions on what to try next? Best regards Karel Braeckman