So I started over (deleted all documents), re-deployed configs to
zookeeper and reloaded the collection.
This error still appears when I group.field=f1
unexpected docvalues type SORTED_SET for field 'f1' (expected=SORTED).
Use UninvertingReader or index with docvalues.
What exactly does this error mean and why am I getting it with a field
that doesn't even have docValues defined?
Why is the DocValues code being used when docValues are not defined
anywhere in my schema.xml?
null:java.lang.IllegalStateException: unexpected docvalues type
SORTED_SET for field 'f1' (expected=SORTED). Use UninvertingReader or
index with docvalues.
at org.apache.lucene.index.DocValues.checkField(DocValues.java:208)
at org.apache.lucene.index.DocValues.getSorted(DocValues.java:264)
at
org.apache.lucene.search.grouping.term.TermFirstPassGroupingCollector.doSetNextReader(TermFirstPassGroupingCollector.java:92)
at
org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)
at
org.apache.lucene.search.MultiCollector.getLeafCollector(MultiCollector.java:117)
at
org.apache.lucene.search.TimeLimitingCollector.getLeafCollector(TimeLimitingCollector.java:144)
at
org.apache.lucene.search.MultiCollector.getLeafCollector(MultiCollector.java:117)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:763)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:486)
at
org.apache.solr.search.grouping.CommandHandler.searchWithTimeLimiter(CommandHandler.java:233)
at
org.apache.solr.search.grouping.CommandHandler.execute(CommandHandler.java:160)
at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:398)
etc ...
On 02/28/2016 05:31 PM, David Santamauro wrote:
I'm porting a 4.8 schema to 5.3 and I came across this new error when I
tried to group.field=f1:
unexpected docvalues type SORTED_SET for field 'f1' (expected=SORTED).
Use UninvertingReader or index with docvalues.
f1 is defined as
<fieldType name="f1_type" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
<field name="f1" type="f1_type" indexed="true" stored="false"
required="true" />
Notice that I don't have docValues defined. I realize the field type
doesn't allow docValues so why does this group request fail with a
docValues error? It did work with 4.8
Any clue would be appreciated, thanks
David