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(org.hibernate.search.engine.metadata.impl.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(org.hibernate.search.engine.metadata.impl.BridgeDefinedField definedField, FieldMetadataCreationContext creationContext)
public FieldMetadataCreationContext field(String name, FieldType type)
field in interface FieldMetadataCreationContextpublic FieldMetadataCreationContext sortable(boolean sortable)
sortable in interface FieldMetadataCreationContextpublic <T extends FieldMetadataCreationContext> T mappedOn(Class<T> backendType)
mappedOn in interface FieldMetadataCreationContextpublic Elasticsearch dynamic(DynamicType dynamicType)
For more details: DynamicType
dynamicType - the dynamic value for the fieldCopyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.