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 index, String jsonSource)Send data string.org.elasticsearch.action.index.IndexResponsesendData(String index, String id, String jsonSource)Send data index response.org.elasticsearch.action.index.IndexResponsesendData(String index, String id, Map<String,Object> source)Send data index response.StringsendData(String index, Map<String,Object> source)Send data string.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(String index, String jsonSource)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(String index, String id, String jsonSource)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(String index, String id, Map<String,Object> source)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsync(String index, Map<String,Object> source)Send data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsyncWithObjectMapper(String index, Object sourceObject)Send data async with object mapper action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse>sendDataAsyncWithObjectMapper(String index, String id, Object sourceObject)Send data async with object mapper action future.StringsendDataWithObjectMapper(String index, Object sourceObject)Send data with object mapper string.org.elasticsearch.action.index.IndexResponsesendDataWithObjectMapper(String index, String id, Object sourceObject)Send data with object mapper index response.org.elasticsearch.action.update.UpdateResponseupsertData(String index, String id, String jsonSource)Upsert data update response.org.elasticsearch.action.update.UpdateResponseupsertData(String index, String id, Map<String,Object> source)Upsert data update response.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertDataAsync(String index, String id, String jsonSource)Upsert data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertDataAsync(String index, String id, Map<String,Object> source)Upsert data async action future.org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse>upsertDataASyncWithObjectMapper(String index, String id, Object sourceObject)Upsert data a sync with object mapper action future.org.elasticsearch.action.update.UpdateResponseupsertDataWithObjectMapper(String index, String id, Object sourceObject)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(String index, String id, Map<String,Object> source)
Upsert data update response.- Parameters:
index- the indexid- the idsource- the source- Returns:
- the update response
-
upsertDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertDataAsync(String index, String id, Map<String,Object> source)
Upsert data async action future.- Parameters:
index- the indexid- the idsource- the source- Returns:
- the action future
-
upsertData
public org.elasticsearch.action.update.UpdateResponse upsertData(String index, String id, String jsonSource)
Upsert data update response.- Parameters:
index- the indexid- the idjsonSource- the json source- Returns:
- the update response
-
upsertDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertDataAsync(String index, String id, String jsonSource)
Upsert data async action future.- Parameters:
index- the indexid- the idjsonSource- the json source- Returns:
- the action future
-
upsertDataWithObjectMapper
public org.elasticsearch.action.update.UpdateResponse upsertDataWithObjectMapper(String index, String id, Object sourceObject)
Upsert data with object mapper update response.- Parameters:
index- the indexid- the idsourceObject- the source object- Returns:
- the update response
-
upsertDataASyncWithObjectMapper
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> upsertDataASyncWithObjectMapper(String index, String id, Object sourceObject)
Upsert data a sync with object mapper action future.- Parameters:
index- the indexid- the idsourceObject- the source object- Returns:
- the action future
-
sendData
public org.elasticsearch.action.index.IndexResponse sendData(String index, String id, Map<String,Object> source)
Send data index response.- Parameters:
index- the indexid- the idsource- the source- Returns:
- the index response
-
sendData
public String sendData(String index, Map<String,Object> source)
Send data string.- Parameters:
index- the indexsource- the source- Returns:
- the string
-
sendData
public org.elasticsearch.action.index.IndexResponse sendData(String index, String id, String jsonSource)
Send data index response.- Parameters:
index- the indexid- the idjsonSource- the json source- Returns:
- the index response
-
sendData
public String sendData(String index, String jsonSource)
Send data string.- Parameters:
index- the indexjsonSource- the json source- Returns:
- the string
-
sendDataWithObjectMapper
public org.elasticsearch.action.index.IndexResponse sendDataWithObjectMapper(String index, String id, Object sourceObject)
Send data with object mapper index response.- Parameters:
index- the indexid- the idsourceObject- the source object- Returns:
- the index response
-
sendDataWithObjectMapper
public String sendDataWithObjectMapper(String index, Object sourceObject)
Send data with object mapper string.- Parameters:
index- the indexsourceObject- the source object- Returns:
- the string
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(String index, String id, Map<String,Object> source)
Send data async action future.- Parameters:
index- the indexid- the idsource- the source- Returns:
- the action future
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(String index, Map<String,Object> source)
Send data async action future.- Parameters:
index- the indexsource- the source- Returns:
- the action future
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(String index, String id, String jsonSource)
Send data async action future.- Parameters:
index- the indexid- the idjsonSource- the json source- Returns:
- the action future
-
sendDataAsync
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsync(String index, String jsonSource)
Send data async action future.- Parameters:
index- the indexjsonSource- the json source- Returns:
- the action future
-
sendDataAsyncWithObjectMapper
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsyncWithObjectMapper(String index, String id, Object sourceObject)
Send data async with object mapper action future.- Parameters:
index- the indexid- the idsourceObject- the source object- Returns:
- the action future
-
sendDataAsyncWithObjectMapper
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> sendDataAsyncWithObjectMapper(String index, Object sourceObject)
Send data async with object mapper action future.- Parameters:
index- the indexsourceObject- the source object- Returns:
- the action future
-
-