The problem I am facing is with fields which have docValues enabled in the
current configuration but was not in the earlier configuration.
The error I get is
*java.lang.IllegalStateException: unexpected docvalues type NONE for field
'abc' (expected one of [SORTED, SORTED_SET]). Re-index with correct
Field type in old configuration - string (solr.StrField) indexed and
stored set to true.
Field type in new configuration - solr.SortableTextField (docValues enabled)
Is there any way I can upgrade with the current field configuration without
having to re-index?
Re: Upgrading Solr 6.3.0 to 7.5.0 without having to re-index
On 4/17/2019 3:52 AM, Ritesh Kumar wrote:
> Field type in old configuration - string (solr.StrField) indexed and
> stored set to true.
> Field type in new configuration - solr.SortableTextField (docValues enabled)
On your schema, you have changed the field class -- from StrField to
SortableTextField. Which, by the way, isn't going to work without a
reindex even if there are no docValues problems. You also changed the
docValues flag, which can sometimes change the docValues type at the
If a field has its Lucene docValues type changed, indexing is going to
fail. The index will have to be completely deleted, restarted, and
rebuilt from scratch. If the index directory is not deleted completely,
then the error you saw will continue even through a reindex.