public class ESTenantClient extends Object implements org.elasticsearch.client.Client
This class will add a tenantId field to all indexed documents. It apply a filter to all searches restricting the results to the current tenant. All ES index ids are prefixed with the tenantId key.
Modifier and Type | Field and Description |
---|---|
static String |
TENANT_ID_FIELD |
Constructor and Description |
---|
ESTenantClient(com.google.common.base.Supplier<org.elasticsearch.client.Client> clientSupplier,
com.atlassian.tenancy.api.TenantContext tenantContext) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.client.AdminClient |
admin() |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.bulk.BulkResponse> |
bulk(org.elasticsearch.action.bulk.BulkRequest request) |
void |
bulk(org.elasticsearch.action.bulk.BulkRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.ClearScrollResponse> |
clearScroll(org.elasticsearch.action.search.ClearScrollRequest request) |
void |
clearScroll(org.elasticsearch.action.search.ClearScrollRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.ClearScrollResponse> listener) |
void |
close() |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.count.CountResponse> |
count(org.elasticsearch.action.count.CountRequest request) |
void |
count(org.elasticsearch.action.count.CountRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.count.CountResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.delete.DeleteResponse> |
delete(org.elasticsearch.action.delete.DeleteRequest request) |
void |
delete(org.elasticsearch.action.delete.DeleteRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.delete.DeleteResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse> |
deleteIndexedScript(org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequest request) |
void |
deleteIndexedScript(org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse> listener) |
<Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse,RequestBuilder extends org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>> |
execute(org.elasticsearch.action.Action<Request,Response,RequestBuilder> action,
Request request) |
<Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse,RequestBuilder extends org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>> |
execute(org.elasticsearch.action.Action<Request,Response,RequestBuilder> action,
Request request,
org.elasticsearch.action.ActionListener<Response> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.exists.ExistsResponse> |
exists(org.elasticsearch.action.exists.ExistsRequest request) |
void |
exists(org.elasticsearch.action.exists.ExistsRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.exists.ExistsResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.explain.ExplainResponse> |
explain(org.elasticsearch.action.explain.ExplainRequest request) |
void |
explain(org.elasticsearch.action.explain.ExplainRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.explain.ExplainResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.fieldstats.FieldStatsResponse> |
fieldStats(org.elasticsearch.action.fieldstats.FieldStatsRequest request) |
void |
fieldStats(org.elasticsearch.action.fieldstats.FieldStatsRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.fieldstats.FieldStatsResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.get.GetResponse> |
get(org.elasticsearch.action.get.GetRequest request) |
void |
get(org.elasticsearch.action.get.GetRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.get.GetResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.indexedscripts.get.GetIndexedScriptResponse> |
getIndexedScript(org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequest request) |
void |
getIndexedScript(org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.indexedscripts.get.GetIndexedScriptResponse> listener) |
org.elasticsearch.client.support.Headers |
headers() |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> |
index(org.elasticsearch.action.index.IndexRequest request) |
void |
index(org.elasticsearch.action.index.IndexRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.get.MultiGetResponse> |
multiGet(org.elasticsearch.action.get.MultiGetRequest request) |
void |
multiGet(org.elasticsearch.action.get.MultiGetRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.get.MultiGetResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.percolate.MultiPercolateResponse> |
multiPercolate(org.elasticsearch.action.percolate.MultiPercolateRequest request) |
void |
multiPercolate(org.elasticsearch.action.percolate.MultiPercolateRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.percolate.MultiPercolateResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.MultiSearchResponse> |
multiSearch(org.elasticsearch.action.search.MultiSearchRequest request) |
void |
multiSearch(org.elasticsearch.action.search.MultiSearchRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.MultiSearchResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.termvectors.MultiTermVectorsResponse> |
multiTermVectors(org.elasticsearch.action.termvectors.MultiTermVectorsRequest request) |
void |
multiTermVectors(org.elasticsearch.action.termvectors.MultiTermVectorsRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.termvectors.MultiTermVectorsResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.percolate.PercolateResponse> |
percolate(org.elasticsearch.action.percolate.PercolateRequest request) |
void |
percolate(org.elasticsearch.action.percolate.PercolateRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.percolate.PercolateResponse> listener) |
org.elasticsearch.action.bulk.BulkRequestBuilder |
prepareBulk() |
org.elasticsearch.action.search.ClearScrollRequestBuilder |
prepareClearScroll() |
org.elasticsearch.action.count.CountRequestBuilder |
prepareCount(String... indices) |
org.elasticsearch.action.delete.DeleteRequestBuilder |
prepareDelete() |
org.elasticsearch.action.delete.DeleteRequestBuilder |
prepareDelete(String index,
String type,
String id) |
org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequestBuilder |
prepareDeleteIndexedScript() |
org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequestBuilder |
prepareDeleteIndexedScript(String scriptLang,
String id) |
<Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse,RequestBuilder extends org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>> |
prepareExecute(org.elasticsearch.action.Action<Request,Response,RequestBuilder> action) |
org.elasticsearch.action.exists.ExistsRequestBuilder |
prepareExists(String... indices) |
org.elasticsearch.action.explain.ExplainRequestBuilder |
prepareExplain(String index,
String type,
String id) |
org.elasticsearch.action.fieldstats.FieldStatsRequestBuilder |
prepareFieldStats() |
org.elasticsearch.action.get.GetRequestBuilder |
prepareGet() |
org.elasticsearch.action.get.GetRequestBuilder |
prepareGet(String index,
String type,
String id) |
org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequestBuilder |
prepareGetIndexedScript() |
org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequestBuilder |
prepareGetIndexedScript(String scriptLang,
String id) |
org.elasticsearch.action.index.IndexRequestBuilder |
prepareIndex() |
org.elasticsearch.action.index.IndexRequestBuilder |
prepareIndex(String index,
String type) |
org.elasticsearch.action.index.IndexRequestBuilder |
prepareIndex(String index,
String type,
String id) |
org.elasticsearch.action.get.MultiGetRequestBuilder |
prepareMultiGet() |
org.elasticsearch.action.percolate.MultiPercolateRequestBuilder |
prepareMultiPercolate() |
org.elasticsearch.action.search.MultiSearchRequestBuilder |
prepareMultiSearch() |
org.elasticsearch.action.termvectors.MultiTermVectorsRequestBuilder |
prepareMultiTermVectors() |
org.elasticsearch.action.percolate.PercolateRequestBuilder |
preparePercolate() |
org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequestBuilder |
preparePutIndexedScript() |
org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequestBuilder |
preparePutIndexedScript(String scriptLang,
String id,
String source) |
org.elasticsearch.action.search.SearchRequestBuilder |
prepareSearch(String... indices) |
org.elasticsearch.action.search.SearchScrollRequestBuilder |
prepareSearchScroll(String scrollId) |
org.elasticsearch.action.suggest.SuggestRequestBuilder |
prepareSuggest(String... indices) |
org.elasticsearch.action.termvectors.TermVectorsRequestBuilder |
prepareTermVector() |
org.elasticsearch.action.termvectors.TermVectorsRequestBuilder |
prepareTermVector(String index,
String type,
String id) |
org.elasticsearch.action.termvectors.TermVectorsRequestBuilder |
prepareTermVectors() |
org.elasticsearch.action.termvectors.TermVectorsRequestBuilder |
prepareTermVectors(String index,
String type,
String id) |
org.elasticsearch.action.update.UpdateRequestBuilder |
prepareUpdate() |
org.elasticsearch.action.update.UpdateRequestBuilder |
prepareUpdate(String index,
String type,
String id) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.indexedscripts.put.PutIndexedScriptResponse> |
putIndexedScript(org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequest request) |
void |
putIndexedScript(org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.indexedscripts.put.PutIndexedScriptResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.SearchResponse> |
search(org.elasticsearch.action.search.SearchRequest request) |
void |
search(org.elasticsearch.action.search.SearchRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.SearchResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.SearchResponse> |
searchScroll(org.elasticsearch.action.search.SearchScrollRequest request) |
void |
searchScroll(org.elasticsearch.action.search.SearchScrollRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.SearchResponse> listener) |
org.elasticsearch.common.settings.Settings |
settings() |
static String |
stripTenantIdFromESIndexId(String id) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.suggest.SuggestResponse> |
suggest(org.elasticsearch.action.suggest.SuggestRequest request) |
void |
suggest(org.elasticsearch.action.suggest.SuggestRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.suggest.SuggestResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.termvectors.TermVectorsResponse> |
termVector(org.elasticsearch.action.termvectors.TermVectorsRequest request) |
void |
termVector(org.elasticsearch.action.termvectors.TermVectorsRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.termvectors.TermVectorsResponse> listener) |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.termvectors.TermVectorsResponse> |
termVectors(org.elasticsearch.action.termvectors.TermVectorsRequest request) |
void |
termVectors(org.elasticsearch.action.termvectors.TermVectorsRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.termvectors.TermVectorsResponse> listener) |
org.elasticsearch.threadpool.ThreadPool |
threadPool() |
org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> |
update(org.elasticsearch.action.update.UpdateRequest request) |
void |
update(org.elasticsearch.action.update.UpdateRequest request,
org.elasticsearch.action.ActionListener<org.elasticsearch.action.update.UpdateResponse> listener) |
public static final String TENANT_ID_FIELD
public ESTenantClient(com.google.common.base.Supplier<org.elasticsearch.client.Client> clientSupplier, com.atlassian.tenancy.api.TenantContext tenantContext)
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.get.GetResponse> get(org.elasticsearch.action.get.GetRequest request)
get
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.SearchResponse> search(org.elasticsearch.action.search.SearchRequest request)
search
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.search.SearchScrollRequestBuilder prepareSearchScroll(String scrollId)
prepareSearchScroll
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.index.IndexResponse> index(org.elasticsearch.action.index.IndexRequest request)
index
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.delete.DeleteResponse> delete(org.elasticsearch.action.delete.DeleteRequest request)
delete
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.bulk.BulkResponse> bulk(org.elasticsearch.action.bulk.BulkRequest request)
bulk
in interface org.elasticsearch.client.Client
public void bulk(org.elasticsearch.action.bulk.BulkRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse> listener)
bulk
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.explain.ExplainResponse> explain(org.elasticsearch.action.explain.ExplainRequest request)
explain
in interface org.elasticsearch.client.Client
public org.elasticsearch.client.AdminClient admin()
admin
in interface org.elasticsearch.client.Client
public void index(org.elasticsearch.action.index.IndexRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.index.IndexResponse> listener)
index
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.index.IndexRequestBuilder prepareIndex()
prepareIndex
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.update.UpdateResponse> update(org.elasticsearch.action.update.UpdateRequest request)
update
in interface org.elasticsearch.client.Client
public void update(org.elasticsearch.action.update.UpdateRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.update.UpdateResponse> listener)
update
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.update.UpdateRequestBuilder prepareUpdate()
prepareUpdate
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.update.UpdateRequestBuilder prepareUpdate(String index, String type, String id)
prepareUpdate
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.index.IndexRequestBuilder prepareIndex(String index, String type)
prepareIndex
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.index.IndexRequestBuilder prepareIndex(String index, String type, String id)
prepareIndex
in interface org.elasticsearch.client.Client
public void delete(org.elasticsearch.action.delete.DeleteRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.delete.DeleteResponse> listener)
delete
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.delete.DeleteRequestBuilder prepareDelete()
prepareDelete
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.delete.DeleteRequestBuilder prepareDelete(String index, String type, String id)
prepareDelete
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.bulk.BulkRequestBuilder prepareBulk()
prepareBulk
in interface org.elasticsearch.client.Client
public void get(org.elasticsearch.action.get.GetRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.get.GetResponse> listener)
get
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.get.GetRequestBuilder prepareGet()
prepareGet
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.get.GetRequestBuilder prepareGet(String index, String type, String id)
prepareGet
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequestBuilder preparePutIndexedScript()
preparePutIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequestBuilder preparePutIndexedScript(String scriptLang, String id, String source)
preparePutIndexedScript
in interface org.elasticsearch.client.Client
public void deleteIndexedScript(org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse> listener)
deleteIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse> deleteIndexedScript(org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequest request)
deleteIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequestBuilder prepareDeleteIndexedScript()
prepareDeleteIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptRequestBuilder prepareDeleteIndexedScript(String scriptLang, String id)
prepareDeleteIndexedScript
in interface org.elasticsearch.client.Client
public void putIndexedScript(org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.indexedscripts.put.PutIndexedScriptResponse> listener)
putIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.indexedscripts.put.PutIndexedScriptResponse> putIndexedScript(org.elasticsearch.action.indexedscripts.put.PutIndexedScriptRequest request)
putIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequestBuilder prepareGetIndexedScript()
prepareGetIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequestBuilder prepareGetIndexedScript(String scriptLang, String id)
prepareGetIndexedScript
in interface org.elasticsearch.client.Client
public void getIndexedScript(org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.indexedscripts.get.GetIndexedScriptResponse> listener)
getIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.indexedscripts.get.GetIndexedScriptResponse> getIndexedScript(org.elasticsearch.action.indexedscripts.get.GetIndexedScriptRequest request)
getIndexedScript
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.get.MultiGetResponse> multiGet(org.elasticsearch.action.get.MultiGetRequest request)
multiGet
in interface org.elasticsearch.client.Client
public void multiGet(org.elasticsearch.action.get.MultiGetRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.get.MultiGetResponse> listener)
multiGet
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.get.MultiGetRequestBuilder prepareMultiGet()
prepareMultiGet
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.count.CountResponse> count(org.elasticsearch.action.count.CountRequest request)
count
in interface org.elasticsearch.client.Client
public void count(org.elasticsearch.action.count.CountRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.count.CountResponse> listener)
count
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.count.CountRequestBuilder prepareCount(String... indices)
prepareCount
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.exists.ExistsResponse> exists(org.elasticsearch.action.exists.ExistsRequest request)
exists
in interface org.elasticsearch.client.Client
public void exists(org.elasticsearch.action.exists.ExistsRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.exists.ExistsResponse> listener)
exists
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.exists.ExistsRequestBuilder prepareExists(String... indices)
prepareExists
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.suggest.SuggestResponse> suggest(org.elasticsearch.action.suggest.SuggestRequest request)
suggest
in interface org.elasticsearch.client.Client
public void suggest(org.elasticsearch.action.suggest.SuggestRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.suggest.SuggestResponse> listener)
suggest
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.suggest.SuggestRequestBuilder prepareSuggest(String... indices)
prepareSuggest
in interface org.elasticsearch.client.Client
public void search(org.elasticsearch.action.search.SearchRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.SearchResponse> listener)
search
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.search.SearchRequestBuilder prepareSearch(String... indices)
prepareSearch
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.SearchResponse> searchScroll(org.elasticsearch.action.search.SearchScrollRequest request)
searchScroll
in interface org.elasticsearch.client.Client
public void searchScroll(org.elasticsearch.action.search.SearchScrollRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.SearchResponse> listener)
searchScroll
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.MultiSearchResponse> multiSearch(org.elasticsearch.action.search.MultiSearchRequest request)
multiSearch
in interface org.elasticsearch.client.Client
public void multiSearch(org.elasticsearch.action.search.MultiSearchRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.MultiSearchResponse> listener)
multiSearch
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.search.MultiSearchRequestBuilder prepareMultiSearch()
prepareMultiSearch
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.termvectors.TermVectorsResponse> termVectors(org.elasticsearch.action.termvectors.TermVectorsRequest request)
termVectors
in interface org.elasticsearch.client.Client
public void termVectors(org.elasticsearch.action.termvectors.TermVectorsRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.termvectors.TermVectorsResponse> listener)
termVectors
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.termvectors.TermVectorsRequestBuilder prepareTermVectors()
prepareTermVectors
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.termvectors.TermVectorsRequestBuilder prepareTermVectors(String index, String type, String id)
prepareTermVectors
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.termvectors.TermVectorsResponse> termVector(org.elasticsearch.action.termvectors.TermVectorsRequest request)
termVector
in interface org.elasticsearch.client.Client
public void termVector(org.elasticsearch.action.termvectors.TermVectorsRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.termvectors.TermVectorsResponse> listener)
termVector
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.termvectors.TermVectorsRequestBuilder prepareTermVector()
prepareTermVector
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.termvectors.TermVectorsRequestBuilder prepareTermVector(String index, String type, String id)
prepareTermVector
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.termvectors.MultiTermVectorsResponse> multiTermVectors(org.elasticsearch.action.termvectors.MultiTermVectorsRequest request)
multiTermVectors
in interface org.elasticsearch.client.Client
public void multiTermVectors(org.elasticsearch.action.termvectors.MultiTermVectorsRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.termvectors.MultiTermVectorsResponse> listener)
multiTermVectors
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.termvectors.MultiTermVectorsRequestBuilder prepareMultiTermVectors()
prepareMultiTermVectors
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.percolate.PercolateResponse> percolate(org.elasticsearch.action.percolate.PercolateRequest request)
percolate
in interface org.elasticsearch.client.Client
public void percolate(org.elasticsearch.action.percolate.PercolateRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.percolate.PercolateResponse> listener)
percolate
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.percolate.PercolateRequestBuilder preparePercolate()
preparePercolate
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.percolate.MultiPercolateResponse> multiPercolate(org.elasticsearch.action.percolate.MultiPercolateRequest request)
multiPercolate
in interface org.elasticsearch.client.Client
public void multiPercolate(org.elasticsearch.action.percolate.MultiPercolateRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.percolate.MultiPercolateResponse> listener)
multiPercolate
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.percolate.MultiPercolateRequestBuilder prepareMultiPercolate()
prepareMultiPercolate
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.explain.ExplainRequestBuilder prepareExplain(String index, String type, String id)
prepareExplain
in interface org.elasticsearch.client.Client
public void explain(org.elasticsearch.action.explain.ExplainRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.explain.ExplainResponse> listener)
explain
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.search.ClearScrollRequestBuilder prepareClearScroll()
prepareClearScroll
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.search.ClearScrollResponse> clearScroll(org.elasticsearch.action.search.ClearScrollRequest request)
clearScroll
in interface org.elasticsearch.client.Client
public void clearScroll(org.elasticsearch.action.search.ClearScrollRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.ClearScrollResponse> listener)
clearScroll
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.fieldstats.FieldStatsRequestBuilder prepareFieldStats()
prepareFieldStats
in interface org.elasticsearch.client.Client
public org.elasticsearch.action.ActionFuture<org.elasticsearch.action.fieldstats.FieldStatsResponse> fieldStats(org.elasticsearch.action.fieldstats.FieldStatsRequest request)
fieldStats
in interface org.elasticsearch.client.Client
public void fieldStats(org.elasticsearch.action.fieldstats.FieldStatsRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.action.fieldstats.FieldStatsResponse> listener)
fieldStats
in interface org.elasticsearch.client.Client
public org.elasticsearch.common.settings.Settings settings()
settings
in interface org.elasticsearch.client.Client
public org.elasticsearch.client.support.Headers headers()
headers
in interface org.elasticsearch.client.Client
public <Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse,RequestBuilder extends org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>> org.elasticsearch.action.ActionFuture<Response> execute(org.elasticsearch.action.Action<Request,Response,RequestBuilder> action, Request request)
execute
in interface org.elasticsearch.client.ElasticsearchClient
public <Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse,RequestBuilder extends org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>> void execute(org.elasticsearch.action.Action<Request,Response,RequestBuilder> action, Request request, org.elasticsearch.action.ActionListener<Response> listener)
execute
in interface org.elasticsearch.client.ElasticsearchClient
public <Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse,RequestBuilder extends org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>> RequestBuilder prepareExecute(org.elasticsearch.action.Action<Request,Response,RequestBuilder> action)
prepareExecute
in interface org.elasticsearch.client.ElasticsearchClient
public org.elasticsearch.threadpool.ThreadPool threadPool()
threadPool
in interface org.elasticsearch.client.ElasticsearchClient
public void close()
close
in interface AutoCloseable
close
in interface org.elasticsearch.common.lease.Releasable
Copyright © 2003–2017 Atlassian. All rights reserved.