Hi,
I saw this on users@. Writing an ignored_* field works on Solr 10.0 and
fails on 10.1 with a NullPointerException:
https://lists.apache.org/thread.html/28pqz7gkvr3tb3mrj7f9npvs8f6slqq5
In StrField.createFields(), before 10.1 the return was
Collections.singletonList(fval). Since 10.1 it is List.of(fval). For an
ignored field, fval is null. Collections.singletonList accepts null;
List.of does not, so the NPE is thrown before the field is dropped.
If this is not the expected behavior, I will open a JIRA and a PR to fix
it.
Thanks,
Li Enlai
This message was drafted with AI assistance and reviewed by me.

Reply via email to