@IndexedEmbedded.includePaths should allow to pick paths that were excluded from the embedded entity

Description

Currently includePaths can only be used in a root entity A.
If you use includePaths also in the embedded entity that is a root entity itself, any paths from A to C will fail, because using includePaths in the embedded entity B will set depth to 0.

In most cases, this is ok, however, it can be very limiting and this limitation shouldn't be there.

The above code will lead c.date to not be indexed because of includePaths="label".

Environment

None

Assignee

Unassigned

Reporter

Marc Schipperheyn

Labels

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure