Changing indexed=true/false or docValues=true/false on an existing field is
no longer allowed as of Solr 9 due to changes in Lucene[1]. You need to
reindex into a new index or at least a new field.


Tomás

[1] https://issues.apache.org/jira/browse/LUCENE-9334

On Mon, Aug 14, 2023 at 1:33 PM mtn search <search...@gmail.com> wrote:

> I believe I have run into the same error when someone made a change to
> docvalues setting.   My understanding, and what we did, the only solution
> is to delete the index and recreate.
>
> https://solr.apache.org/guide/solr/latest/indexing-guide/reindexing.html
>
> Matt
>
> On Mon, Aug 14, 2023 at 2:23 PM rajani m <rajinima...@gmail.com> wrote:
>
> > Hi Solr Users,
> >
> > There is a sortable text
> > <
> >
> https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/schema/SortableTextField.java#L53
> > >field
> > that has docValues enabled by default, tried to disable it by setting
> > "docValues=false" in the schema and indexing(update) the same docs, but
> it
> > fails with the following error.
> >
> >  "doc values type=SORTED to inconsistent doc values type=NONE"
> >
> > Looks like once the docValues are enabled, it is not possible to disable.
> > And is there an alternative other than recreating index?
> >
> > Thanks,
> > Rajani
> >
>

Reply via email to