|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.client.support.AbstractClient org.elasticsearch.client.transport.support.InternalTransportClient
public class InternalTransportClient
Constructor Summary | |
---|---|
InternalTransportClient(Settings settings,
ThreadPool threadPool,
TransportClientNodesService nodesService,
InternalTransportAdminClient adminClient,
ClientTransportIndexAction indexAction,
ClientTransportDeleteAction deleteAction,
ClientTransportBulkAction bulkAction,
ClientTransportGetAction getAction,
ClientTransportDeleteByQueryAction deleteByQueryAction,
ClientTransportCountAction countAction,
ClientTransportSearchAction searchAction,
ClientTransportSearchScrollAction searchScrollAction,
ClientTransportMoreLikeThisAction moreLikeThisAction,
ClientTransportPercolateAction percolateAction)
|
Method Summary | |
---|---|
AdminClient |
admin()
The admin client that can be used to perform administrative operations. |
ActionFuture<BulkResponse> |
bulk(BulkRequest request)
Executes a bulk of index / delete operations. |
void |
bulk(BulkRequest request,
ActionListener<BulkResponse> listener)
Executes a bulk of index / delete operations. |
void |
close()
Closes the client. |
ActionFuture<CountResponse> |
count(CountRequest request)
A count of all the documents matching a specific query. |
void |
count(CountRequest request,
ActionListener<CountResponse> listener)
A count of all the documents matching a specific query. |
ActionFuture<DeleteResponse> |
delete(DeleteRequest request)
Deletes a document from the index based on the index, type and id. |
void |
delete(DeleteRequest request,
ActionListener<DeleteResponse> listener)
Deletes a document from the index based on the index, type and id. |
ActionFuture<DeleteByQueryResponse> |
deleteByQuery(DeleteByQueryRequest request)
Deletes all documents from one or more indices based on a query. |
void |
deleteByQuery(DeleteByQueryRequest request,
ActionListener<DeleteByQueryResponse> listener)
Deletes all documents from one or more indices based on a query. |
ActionFuture<GetResponse> |
get(GetRequest request)
Gets the document that was indexed from an index with a type and id. |
void |
get(GetRequest request,
ActionListener<GetResponse> listener)
Gets the document that was indexed from an index with a type and id. |
ActionFuture<IndexResponse> |
index(IndexRequest request)
Index a JSON source associated with a given index and type. |
void |
index(IndexRequest request,
ActionListener<IndexResponse> listener)
Index a document associated with a given index and type. |
ActionFuture<SearchResponse> |
moreLikeThis(MoreLikeThisRequest request)
A more like this action to search for documents that are "like" a specific document. |
void |
moreLikeThis(MoreLikeThisRequest request,
ActionListener<SearchResponse> listener)
A more like this action to search for documents that are "like" a specific document. |
ActionFuture<PercolateResponse> |
percolate(PercolateRequest request)
Percolates a request returning the matches documents. |
void |
percolate(PercolateRequest request,
ActionListener<PercolateResponse> listener)
Percolates a request returning the matches documents. |
ActionFuture<SearchResponse> |
search(SearchRequest request)
Search across one or more indices and one or more types with a query. |
void |
search(SearchRequest request,
ActionListener<SearchResponse> listener)
Search across one or more indices and one or more types with a query. |
ActionFuture<SearchResponse> |
searchScroll(SearchScrollRequest request)
A search scroll request to continue searching a previous scrollable search request. |
void |
searchScroll(SearchScrollRequest request,
ActionListener<SearchResponse> listener)
A search scroll request to continue searching a previous scrollable search request. |
ThreadPool |
threadPool()
|
Methods inherited from class org.elasticsearch.client.support.AbstractClient |
---|
prepareBulk, prepareCount, prepareDelete, prepareDelete, prepareDeleteByQuery, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareIndex, preparePercolate, prepareSearch, prepareSearchScroll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.elasticsearch.client.Client |
---|
prepareBulk, prepareCount, prepareDelete, prepareDelete, prepareDeleteByQuery, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareIndex, preparePercolate, prepareSearch, prepareSearchScroll |
Constructor Detail |
---|
@Inject public InternalTransportClient(Settings settings, ThreadPool threadPool, TransportClientNodesService nodesService, InternalTransportAdminClient adminClient, ClientTransportIndexAction indexAction, ClientTransportDeleteAction deleteAction, ClientTransportBulkAction bulkAction, ClientTransportGetAction getAction, ClientTransportDeleteByQueryAction deleteByQueryAction, ClientTransportCountAction countAction, ClientTransportSearchAction searchAction, ClientTransportSearchScrollAction searchScrollAction, ClientTransportMoreLikeThisAction moreLikeThisAction, ClientTransportPercolateAction percolateAction)
Method Detail |
---|
public void close()
Client
close
in interface Client
public ThreadPool threadPool()
threadPool
in interface InternalClient
public AdminClient admin()
Client
admin
in interface Client
public ActionFuture<IndexResponse> index(IndexRequest request)
Client
The id is optional, if it is not provided, one will be generated automatically.
index
in interface Client
request
- The index request
Requests.indexRequest(String)
public void index(IndexRequest request, ActionListener<IndexResponse> listener)
Client
The id is optional, if it is not provided, one will be generated automatically.
index
in interface Client
request
- The index requestlistener
- A listener to be notified with a resultRequests.indexRequest(String)
public ActionFuture<DeleteResponse> delete(DeleteRequest request)
Client
delete
in interface Client
request
- The delete request
Requests.deleteRequest(String)
public void delete(DeleteRequest request, ActionListener<DeleteResponse> listener)
Client
delete
in interface Client
request
- The delete requestlistener
- A listener to be notified with a resultRequests.deleteRequest(String)
public ActionFuture<BulkResponse> bulk(BulkRequest request)
Client
bulk
in interface Client
request
- The bulk request
Requests.bulkRequest()
public void bulk(BulkRequest request, ActionListener<BulkResponse> listener)
Client
bulk
in interface Client
request
- The bulk requestlistener
- A listener to be notified with a resultRequests.bulkRequest()
public ActionFuture<DeleteByQueryResponse> deleteByQuery(DeleteByQueryRequest request)
Client
deleteByQuery
in interface Client
request
- The delete by query request
Requests.deleteByQueryRequest(String...)
public void deleteByQuery(DeleteByQueryRequest request, ActionListener<DeleteByQueryResponse> listener)
Client
deleteByQuery
in interface Client
request
- The delete by query requestlistener
- A listener to be notified with a resultRequests.deleteByQueryRequest(String...)
public ActionFuture<GetResponse> get(GetRequest request)
Client
get
in interface Client
request
- The get request
Requests.getRequest(String)
public void get(GetRequest request, ActionListener<GetResponse> listener)
Client
get
in interface Client
request
- The get requestlistener
- A listener to be notified with a resultRequests.getRequest(String)
public ActionFuture<CountResponse> count(CountRequest request)
Client
count
in interface Client
request
- The count request
Requests.countRequest(String...)
public void count(CountRequest request, ActionListener<CountResponse> listener)
Client
count
in interface Client
request
- The count requestlistener
- A listener to be notified of the resultRequests.countRequest(String...)
public ActionFuture<SearchResponse> search(SearchRequest request)
Client
search
in interface Client
request
- The search request
Requests.searchRequest(String...)
public void search(SearchRequest request, ActionListener<SearchResponse> listener)
Client
search
in interface Client
request
- The search requestlistener
- A listener to be notified of the resultRequests.searchRequest(String...)
public ActionFuture<SearchResponse> searchScroll(SearchScrollRequest request)
Client
searchScroll
in interface Client
request
- The search scroll request
Requests.searchScrollRequest(String)
public void searchScroll(SearchScrollRequest request, ActionListener<SearchResponse> listener)
Client
searchScroll
in interface Client
request
- The search scroll requestlistener
- A listener to be notified of the resultRequests.searchScrollRequest(String)
public ActionFuture<SearchResponse> moreLikeThis(MoreLikeThisRequest request)
Client
moreLikeThis
in interface Client
request
- The more like this request
public void moreLikeThis(MoreLikeThisRequest request, ActionListener<SearchResponse> listener)
Client
moreLikeThis
in interface Client
request
- The more like this requestlistener
- A listener to be notified of the resultpublic ActionFuture<PercolateResponse> percolate(PercolateRequest request)
Client
percolate
in interface Client
public void percolate(PercolateRequest request, ActionListener<PercolateResponse> listener)
Client
percolate
in interface Client
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |