public interface ElasticsearchSchemaTranslator
Modifier and Type | Method and Description |
---|---|
boolean |
isTextDataType(PartialDocumentFieldMetadata fieldMetadata) |
IndexMetadata |
translate(URLEncodedString indexName,
Collection<EntityIndexBinding> descriptors,
ExecutionOptions executionOptions)
Translates index metadata, throwing an exception if translation fails.
|
IndexMetadata translate(URLEncodedString indexName, Collection<EntityIndexBinding> descriptors, ExecutionOptions executionOptions)
indexName
- The name of the indexdescriptors
- The entity bindingsexecutionOptions
- The execution options, giving more context information.SearchException
- If an error occurs.boolean isTextDataType(PartialDocumentFieldMetadata fieldMetadata)
fieldMetadata
- Metadata to inspecttrue
if the given field will have the "text" datatype on Elasticsearch, false
otherwise.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved