public interface ElasticSearchDataSetDefBuilder<T extends DataSetDefBuilder> extends DataSetDefBuilder<T>
DataSetDef dataSetDef = DataSetDefFactory.newElasticSearchDataSetDef()
.uuid("all_employees")
.serverURL("localhost:9300")
.index("index1")
.type("type1")
.query("DSL query here")
.relevance("10")
.buildDef();
| Modifier and Type | Method and Description |
|---|---|
T |
cacheOn(boolean synced,
int maxRowsInCache)
Enables the static cache
|
T |
clusterName(String clusterName)
Set the ElasticSearch cluster name.
|
T |
index(String index)
Set the name of the index that this dataset will handle.
|
T |
query(String query)
Set a custom query to extract the data from ElasticSearch server, instead of manually setting
index and type parameters. |
T |
relevance(String relevance)
Set the minimum relevance value for resulting search documents.
|
T |
serverURL(String serverURL)
Set the ElasticSearch server instance URL.
|
T |
type(String type)
Set the type of the given index/es that this dataset will handle.
|
T serverURL(String serverURL)
Set the ElasticSearch server instance URL.
serverURL - The URL for the ElasticSearch server instance.T clusterName(String clusterName)
Set the ElasticSearch cluster name.
clusterName - The cluster name.T index(String index)
Set the name of the index that this dataset will handle.
This DataSet definition supports working with multiple indexes, so this method can be invoked several times.
index - The index nameT type(String type)
Set the type of the given index/es that this dataset will handle.
This DataSet definition supports working with multiple types, so this method can be invoked several times.
If there is no index configured, the type is skipped.
type - The type of the given index/esT query(String query)
Set a custom query to extract the data from ElasticSearch server, instead of manually setting index and type parameters.
This parameter is only used if there are no index and type parameters already configured.
query - The DSL query to perform for data extraction.T relevance(String relevance)
Set the minimum relevance value for resulting search documents.
If a document relevance value is less than the configured using this method, the document will be present in the dataset.
relevance - The minimum relevance valueT cacheOn(boolean synced, int maxRowsInCache)
synced - For keeping the cache synced with the remote database content. If false, the cached content will get never updated once read.maxRowsInCache - Max. rows the cache is able to handle. For higher values the cache is automatically disabled.Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.