-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-2397 Fix type detection with ES for embeddeds whose prefix do…
…esn't contain a dot The previous code was retrieving the source properties for document fields by assuming that field names always match the property paths exactly, which isn't true due to customizable @IndexedEmbedded prefixes. The solution is to augment the metamodel with back references, so that document field metadata contains the reference to their source property, thereby removing the need to guess the property from the field name. I took this opportunity to also add back references from properties to their declaring types, from embedded types to their source property, and from document fields to their source type (useful for class bridges in particular, where there's no source property). This part could be removed, but it makes the metamodel more consistent.
- Loading branch information
Showing
14 changed files
with
254 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.