Class ElasticSearchRestClient
- java.lang.Object
-
- org.elasticsearch.client.RestHighLevelClient
-
- org.apache.metamodel.elasticsearch.rest.ElasticSearchRestClient
-
public class ElasticSearchRestClient extends org.elasticsearch.client.RestHighLevelClient
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchRestClient(org.elasticsearch.client.RestClient restClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateMapping(org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest putMappingRequest, org.apache.http.Header... headers)booleandelete(String indexName, org.apache.http.Header... headers)Set<Map.Entry<String,Object>>getMappings(String indexName, org.apache.http.Header... headers)booleanrefresh(String indexName, org.apache.http.Header... headers)-
Methods inherited from class org.elasticsearch.client.RestHighLevelClient
bulk, bulkAsync, clearScroll, clearScrollAsync, delete, deleteAsync, exists, existsAsync, get, getAsync, index, indexAsync, info, parseEntity, parseResponseException, performRequest, performRequestAndParseEntity, performRequestAsync, performRequestAsyncAndParseEntity, ping, search, searchAsync, searchScroll, searchScrollAsync, update, updateAsync
-
-
-
-
Method Detail
-
refresh
public final boolean refresh(String indexName, org.apache.http.Header... headers)
-
delete
public final boolean delete(String indexName, org.apache.http.Header... headers) throws IOException
- Throws:
IOException
-
getMappings
public Set<Map.Entry<String,Object>> getMappings(String indexName, org.apache.http.Header... headers) throws IOException
- Throws:
IOException
-
createMapping
public final boolean createMapping(org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest putMappingRequest, org.apache.http.Header... headers) throws IOException- Throws:
IOException
-
-