Annotation Type IndexedEmbedded
@*To*, @Embedded, @CollectionOfEmbedded) is to be indexed in
the root entity index. This allows queries involving associated objects properties.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintDeprecated.Stop indexing embedded elements whendepthis reached.booleanDeprecated.Returnstrue, if the id of the embedded object should be included into the index,falseotherwise.String[]Deprecated.List which paths of the object graph should be included in the index, and need to match the field names used to store them in the index, so they will also match the field names used to specify full text queries.Deprecated.Field name prefix.Class<?>Deprecated.Overrides the target type of an association, in case a collection overrides the type of the collection generics.
-
Element Details
-
prefix
String prefixDeprecated.Field name prefix.- Returns:
- the field name prefix. Default to ".", indicating that
propertyname.will be used.
- Default:
- "."
-
includePaths
String[] includePathsDeprecated.List which paths of the object graph should be included in the index, and need to match the field names used to store them in the index, so they will also match the field names used to specify full text queries.
Defined paths are going to be indexed even if they exceed the
depththreshold. WhenincludePathsis not empty, the default value fordepthis 0.Defined paths are implicitly prefixed with the
prefix().- Returns:
- the paths to include. Default to empty array
- Default:
- {}
-
depth
int depthDeprecated.Stop indexing embedded elements whendepthis reached.depth=1means the associated element is indexed, but not its embedded elements.The default value depends on the value of the
includePathsattribute: if no paths are defined, the default isInteger.MAX_VALUE; if anyincludePathsare defined, the defaultdepthis interpreted as 0 if not specified to a different value than it's default.Note that when defining any path to the
includePathsattribute the default is zero also when explicitly set toInteger.MAX_VALUE.- Returns:
- the depth size. Default value is
Integer.MAX_VALUE
- Default:
- 2147483647
-
targetElement
Class<?> targetElementDeprecated.Overrides the target type of an association, in case a collection overrides the type of the collection generics.- Returns:
- the target type of the association. Default to
void.class
- Default:
- void.class
-
includeEmbeddedObjectId
boolean includeEmbeddedObjectIdDeprecated.Returnstrue, if the id of the embedded object should be included into the index,falseotherwise. The default isfalse.Note
: If the id property is explicitly listed viaincludePaths(), then the id is included even if this value isfalse.- Returns:
- Returns
true, if the id of the embedded object should be included into the index,falseotherwise.
- Default:
- false
-
IndexedEmbeddedinstead.