With a future upgrade to Lucene 9+ comes some additional schema validation on indexing. This leads to failures when we try to write a nested object, as we don’t add the docvalue to a root id field. This causes a mismatch between the root and nested object id schema.
To prevent this from happening, we could write a doc value for the nested object too, or alternatively (which this ticket is about), we can have an additional a separate docvalues field to retrieve the id from in a root document.
See [https://github.com/hibernate/hibernate-search/pull/3485#discussion_r1177395875|https://github.com/hibernate/hibernate-search/pull/3485#discussion_r1177395875|smart-link] |
|