Re: docValues with stored and useDocValuesAsStored
If Solr can fetch a field from both stored and docValues then it
chooses docValues only if such field is single-valued and that allows
Solr to avoid accessing the stored document altogether for *all*
fields to be returned. Otherwise stored values are preferred. This is
the behavior since 7.1+
> What is the precedence when docValues with stored=true is used?
> <field name="lang" type="string" indexed="true" stored="true" docValues="true" />
> My guess, because of useDocValuesAsStored=true is default, that stored=true is
> ignored and the values are pulled from docValues.
> And only if useDocValuesAsStored=false is explicitly used then stored=true comes
> into play.
> Or short, useDocValuesAsStored=true (the default) has precedence over stored=true.
> I this right?