@IndexedEmbedded.includePaths includes fields one level too deep in some cases

Description

See org.hibernate.search.documentation.mapper.orm.indexedembedded.includepathsanddepth.IndexedEmbeddedIncludePathsAndDepthIT introduced as part of HSEARCH-3676: there's a commented test in there because a field that is expected to be excluded is actually included.

It might have to do with how we compose filters; I suspect includePaths of nested @IndexedEmbedded should be ignored beyond a certain level, but are not. Let's investigate.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure