On 2/28/2016 3: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
It sounds like you are running into pretty much exactly what I did with 5.x. https://issues.apache.org/jira/browse/SOLR-8088 I had to create a copyField that's a string (StrField) type and include docValues on that field. I still can't use my tokenized field like I want to, as I do in 4.x. Thanks, Shawn