Class 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
      boolean createMapping​(org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest putMappingRequest, org.apache.http.Header... headers)  
      boolean delete​(String indexName, org.apache.http.Header... headers)  
      Set<Map.Entry<String,​Object>> getMappings​(String indexName, org.apache.http.Header... headers)  
      boolean refresh​(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
    • Constructor Detail

      • ElasticSearchRestClient

        public ElasticSearchRestClient​(org.elasticsearch.client.RestClient restClient)
    • Method Detail

      • refresh

        public final boolean refresh​(String indexName,
                                     org.apache.http.Header... headers)
      • createMapping

        public final boolean createMapping​(org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest putMappingRequest,
                                           org.apache.http.Header... headers)
                                    throws IOException
        Throws:
        IOException