On 12/22/22 02:17, Eduardo Gomez wrote:
As Jan mentioned, I experienced the same problem on Solr 8.11. I can see in
your schema this commented out field:
<!--
<dynamicField name="*" type="string" indexed="false" stored="true"/>
-->
Does removing the comment solve the issue? What about leaving that
commented out and also commenting out the _root_ field? In my case, either
including or excluding both fields seems to solve the issue. It is a bit
concerning not really knowing what's going on though.
I actually wasn't aware that I had a wildcard dynamicField before I
started working on this. It's not something that I want in the config,
so I commented it. The problem was happening while that definition was
there. But the commented dynamicField is not indexed.
I updated the _root_ field so indexed and docValues were true, and that
didn't fix it. But when I also set stored to true, it's magically
better. If I use add useDocValuesAsStored="true" instead of setting
stored to true, that also works.
I'm going to look at the documentation about _root_ to verify what it
says I should do.
The definition of _root_ in the _default configset is as follows:
<field name="_root_" type="string" indexed="true" stored="false"
docValues="false" />
Which is different than what I had, but is still not going to work,
because stored is false and useDocValueAsStored is not present, which
seems to make it false. That is probably a bug.
Thanks,
Shawn