public class ClientFacade extends Object implements Closeable
| Constructor and Description |
|---|
ClientFacade(org.elasticsearch.client.Client client) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.search.aggregations.Aggregations |
aggregate(List<org.elasticsearch.search.aggregations.AggregationBuilder> aggregations,
org.elasticsearch.index.query.QueryBuilder query,
Index index) |
void |
close() |
void |
createIndex(Index index,
IndexSettings indexSettings,
Stream<Mapping> mappingStream) |
void |
deleteById(Index index,
Document document) |
void |
deleteIndex(Index index) |
org.apache.lucene.search.Explanation |
explain(SearchHit searchHit,
org.elasticsearch.index.query.QueryBuilder query) |
long |
getCount(Index index) |
long |
getCount(org.elasticsearch.index.query.QueryBuilder query,
Index index) |
void |
index(Index index,
Document document) |
boolean |
indexesExist(Index index) |
void |
processDocumentActions(Stream<DocumentAction> documentActions) |
void |
refreshIndexes() |
SearchHits |
search(org.elasticsearch.index.query.QueryBuilder query,
int from,
int size,
List<Index> indexes) |
SearchHits |
search(org.elasticsearch.index.query.QueryBuilder query,
int from,
int size,
Sort sort,
Index index) |
public void createIndex(Index index, IndexSettings indexSettings, Stream<Mapping> mappingStream)
public boolean indexesExist(Index index)
public void deleteIndex(Index index)
public void refreshIndexes()
public long getCount(Index index)
public long getCount(org.elasticsearch.index.query.QueryBuilder query,
Index index)
public SearchHits search(org.elasticsearch.index.query.QueryBuilder query, int from, int size, List<Index> indexes)
public SearchHits search(org.elasticsearch.index.query.QueryBuilder query, int from, int size, Sort sort, Index index)
public org.elasticsearch.search.aggregations.Aggregations aggregate(List<org.elasticsearch.search.aggregations.AggregationBuilder> aggregations, org.elasticsearch.index.query.QueryBuilder query, Index index)
public org.apache.lucene.search.Explanation explain(SearchHit searchHit, org.elasticsearch.index.query.QueryBuilder query)
public void processDocumentActions(Stream<DocumentAction> documentActions)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.