On 6/12/23 10:24, mtn search wrote:
Any tips as to why this error is occurring? Occurs with query when sorting
on sortableSender or other fields with docvalues set to false. Plan to
re-index, but would like to better understand this issue. Why would it
expect "=SORTED" when docvalues is set to false?
<field name="sortableSender" type="icuCollationDefault" indexed="true"
stored="true" multiValued="false" required="false" docValues="false" />
Solr version 6.4.2
<luceneMatchVersion>6.4.0</luceneMatchVersion>
*error":{ "msg":"unexpected docvalues type NONE for field 'sortableSender'
You realize that Solr 6.x is completely end of life, right? For a long
time now.
Why are you turning docValues off on a field that you want to use for
sorting? docValues make sorting a LOT faster. It is possible that 6.x
is assuming that a field used for sorting has docValues, but I am
thinking it might be another problem:
Did you ever have docValues defned for this field? If so, did you
completely wipe the index and rebuild it after you changed the docValues
setting? If you change just about anything on a field that has
docValues, completely deleting the index directories using that schema
and rebuilding the index from scratch is required. This is a
requirement baked into Lucene, it doesn't come from Solr. f you don't
do this, then you get docValues errors.
Thanks,
Shawn