Package kr.jm.utils.elasticsearch
Class JMElasticsearchIndex
- java.lang.Object
-
- kr.jm.utils.elasticsearch.JMElasticsearchIndex
-
public class JMElasticsearchIndex extends Object
The type Jm elasticsearch index.
-
-
Constructor Summary
Constructors Constructor Description JMElasticsearchIndex(org.elasticsearch.client.Client elasticsearchClient)Instantiates a new Jm elasticsearch index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.action.index.IndexResponseindexQuery(org.elasticsearch.action.index.IndexRequestBuilder indexRequestBuilder)Index query index response.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>indexQueryAsync(org.elasticsearch.action.index.IndexRequestBuilder indexRequestBuilder)Index query async action future.StringsendData(String jsonSource, String index, String type)Send data string.org.elasticsearch.action.index.IndexResponsesendData(String jsonSource, String index, String type, String id)Send data index response.StringsendData(Map<String,?> source, String index, String type)Send data string.org.elasticsearch.action.index.IndexResponsesendData(Map<String,?> source, String index, String type, String id)Send data index response.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(String jsonSource, String index, String type)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(String jsonSource, String index, String type, String id)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(Map<String,?> source, String index, String type)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(Map<String,?> source, String index, String type, String id)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsyncWithObjectMapper(Object sourceObject, String index, String type)Send data async with object mapper action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsyncWithObjectMapper(Object sourceObject, String index, String type, String id)Send data async with object mapper action future.StringsendDataWithObjectMapper(Object sourceObject, String index, String type)Send data with object mapper string.org.elasticsearch.action.index.IndexResponsesendDataWithObjectMapper(Object sourceObject, String index, String type, String id)Send data with object mapper index response.org.elasticsearch.action.update.UpdateResponseupsertData(String jsonSource, String index, String type, String id)Upsert data update response.org.elasticsearch.action.update.UpdateResponseupsertData(Map<String,?> source, String index, String type, String id)Upsert data update response.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertDataAsync(String jsonSource, String index, String type, String id)Upsert data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertDataAsync(Map<String,?> source, String index, String type, String id)Upsert data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertDataASyncWithObjectMapper(Object sourceObject, String index, String type, String id)Upsert data a sync with object mapper action future.org.elasticsearch.action.update.UpdateResponseupsertDataWithObjectMapper(Object sourceObject, String index, String type, String id)Upsert data with object mapper update response.org.elasticsearch.action.update.UpdateResponseupsertQuery(org.elasticsearch.action.update.UpdateRequestBuilder updateRequestBuilder)Upsert query update response.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertQueryAsync(org.elasticsearch.action.update.UpdateRequestBuilder updateRequestBuilder)Upsert query async action future.
-
-
-
Method Detail
-
indexQuery
public org.elasticsearch.action.index.IndexResponse indexQuery(org.elasticsearch.action.index.IndexRequestBuilder indexRequestBuilder)
Index query index response.- Parameters:
indexRequestBuilder- the index request builder- Returns:
- the index response
-
indexQueryAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> indexQueryAsync(org.elasticsearch.action.index.IndexRequestBuilder indexRequestBuilder)
Index query async action future.- Parameters:
indexRequestBuilder- the index request builder- Returns:
- the action future
-
upsertQuery
public org.elasticsearch.action.update.UpdateResponse upsertQuery(org.elasticsearch.action.update.UpdateRequestBuilder updateRequestBuilder)
Upsert query update response.- Parameters:
updateRequestBuilder- the update request builder- Returns:
- the update response
-
upsertQueryAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertQueryAsync(org.elasticsearch.action.update.UpdateRequestBuilder updateRequestBuilder)
Upsert query async action future.- Parameters:
updateRequestBuilder- the update request builder- Returns:
- the action future
-
upsertData
public org.elasticsearch.action.update.UpdateResponse upsertData(Map<String,?> source, String index, String type, String id)
Upsert data update response.- Parameters:
source- the sourceindex- the indextype- the typeid- the id- Returns:
- the update response
-
upsertDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertDataAsync(Map<String,?> source, String index, String type, String id)
Upsert data async action future.- Parameters:
source- the sourceindex- the indextype- the typeid- the id- Returns:
- the action future
-
upsertData
public org.elasticsearch.action.update.UpdateResponse upsertData(String jsonSource, String index, String type, String id)
Upsert data update response.- Parameters:
jsonSource- the json sourceindex- the indextype- the typeid- the id- Returns:
- the update response
-
upsertDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertDataAsync(String jsonSource, String index, String type, String id)
Upsert data async action future.- Parameters:
jsonSource- the json sourceindex- the indextype- the typeid- the id- Returns:
- the action future
-
upsertDataWithObjectMapper
public org.elasticsearch.action.update.UpdateResponse upsertDataWithObjectMapper(Object sourceObject, String index, String type, String id)
Upsert data with object mapper update response.- Parameters:
sourceObject- the source objectindex- the indextype- the typeid- the id- Returns:
- the update response
-
upsertDataASyncWithObjectMapper
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertDataASyncWithObjectMapper(Object sourceObject, String index, String type, String id)
Upsert data a sync with object mapper action future.- Parameters:
sourceObject- the source objectindex- the indextype- the typeid- the id- Returns:
- the action future
-
sendData
public org.elasticsearch.action.index.IndexResponse sendData(Map<String,?> source, String index, String type, String id)
Send data index response.- Parameters:
source- the sourceindex- the indextype- the typeid- the id- Returns:
- the index response
-
sendData
public String sendData(Map<String,?> source, String index, String type)
Send data string.- Parameters:
source- the sourceindex- the indextype- the type- Returns:
- the string
-
sendData
public org.elasticsearch.action.index.IndexResponse sendData(String jsonSource, String index, String type, String id)
Send data index response.- Parameters:
jsonSource- the json sourceindex- the indextype- the typeid- the id- Returns:
- the index response
-
sendData
public String sendData(String jsonSource, String index, String type)
Send data string.- Parameters:
jsonSource- the json sourceindex- the indextype- the type- Returns:
- the string
-
sendDataWithObjectMapper
public org.elasticsearch.action.index.IndexResponse sendDataWithObjectMapper(Object sourceObject, String index, String type, String id)
Send data with object mapper index response.- Parameters:
sourceObject- the source objectindex- the indextype- the typeid- the id- Returns:
- the index response
-
sendDataWithObjectMapper
public String sendDataWithObjectMapper(Object sourceObject, String index, String type)
Send data with object mapper string.- Parameters:
sourceObject- the source objectindex- the indextype- the type- Returns:
- the string
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(Map<String,?> source, String index, String type, String id)
Send data async action future.- Parameters:
source- the sourceindex- the indextype- the typeid- the id- Returns:
- the action future
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(Map<String,?> source, String index, String type)
Send data async action future.- Parameters:
source- the sourceindex- the indextype- the type- Returns:
- the action future
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(String jsonSource, String index, String type, String id)
Send data async action future.- Parameters:
jsonSource- the json sourceindex- the indextype- the typeid- the id- Returns:
- the action future
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(String jsonSource, String index, String type)
Send data async action future.- Parameters:
jsonSource- the json sourceindex- the indextype- the type- Returns:
- the action future
-
sendDataAsyncWithObjectMapper
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsyncWithObjectMapper(Object sourceObject, String index, String type, String id)
Send data async with object mapper action future.- Parameters:
sourceObject- the source objectindex- the indextype- the typeid- the id- Returns:
- the action future
-
sendDataAsyncWithObjectMapper
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsyncWithObjectMapper(Object sourceObject, String index, String type)
Send data async with object mapper action future.- Parameters:
sourceObject- the source objectindex- the indextype- the type- Returns:
- the action future
-
-