@IndexedEmbedded.includePaths includes fields one level two 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

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

6.0.0.Alpha9

Priority

Major