public class Elasticsearch extends Object implements FieldMetadataCreationContext
FieldMetadataCreationContext
allowing the user to define additional properties for a field specific
to Elasticsearch.Constructor and Description |
---|
Elasticsearch(BridgeDefinedField definedField,
FieldMetadataCreationContext creationContext) |
Modifier and Type | Method and Description |
---|---|
Elasticsearch |
dynamic(DynamicType dynamicType)
The dynamic type of the field, overrides the global configuration.
|
FieldMetadataCreationContext |
field(String name,
FieldType type) |
<T extends FieldMetadataCreationContext> |
mappedOn(Class<T> backendType) |
FieldMetadataCreationContext |
sortable(boolean sortable) |
public Elasticsearch(BridgeDefinedField definedField, FieldMetadataCreationContext creationContext)
public FieldMetadataCreationContext field(String name, FieldType type)
field
in interface FieldMetadataCreationContext
public FieldMetadataCreationContext sortable(boolean sortable)
sortable
in interface FieldMetadataCreationContext
public <T extends FieldMetadataCreationContext> T mappedOn(Class<T> backendType)
mappedOn
in interface FieldMetadataCreationContext
public Elasticsearch dynamic(DynamicType dynamicType)
For more details: DynamicType
dynamicType
- the dynamic value for the fieldCopyright © 2006–2017 Hibernate. All rights reserved.