On 11/8/2019 5:31 PM, Antony Alphonse wrote:
I shared the collection and re-indexed the data with the same schema. But
one of the field is throwing the below error. Any suggestions?
<field name="lowercase" type="lowercase" indexed="true" stored="true"
required="false" />
ERROR (qtp672320506-32) [c: s:shard3 r:core_node01 x:_shard3_replica_n69]
o.a.s.h.RequestHandlerBase java.lang.IllegalStateException: unexpected
docvalues type SORTED_SET for field 'lowercase' (expected=SORTED). Re-index
with correct docvalues type.
This error means that part of the index was created with one definition
for the field in question, then the schema was changed in an
incompatible way, and additional indexing was attempted.
The solution to this particular error is to completely delete the index
directories that make up the collection, reload it, and then build it
from scratch again. The error happens at the Lucene level and the only
way to fix it is to completely delete the index. You could do it by
creating an entirely new collection.
Thanks,
Shawn