On 2023-04-03 6:27 PM, Cesar Delgado wrote:
Thank you Sean,
You are correct, the problem is definitely that nested field. I would still
like to open a bug as the error message that is being returned is incorrect and
confusing.
Why? If you define 'account_acct' as required in the schema, then
*every* document has to have it. Including nested documents: child
documents are still documents and are still subject to all the schema
constraints.
Check the Fine Manual:
https://solr.apache.org/guide/8_11/indexing-nested-documents.html -- the
required field is "id" and every child document has it.
(As a side note I find that using "compound ids" as per TFM and having
_nest_parent_ helps; and that updates don't work without defining both
_root_ and _nest_path_ as stored and docvalues=true.)
I.e. you should either "flatten" your document structure or change the
schema -- with what you have, the error message is correct.
Dima