public class ElasticSearchClientImpl extends Object implements ElasticSearchClient
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ElasticSearchClientImpl(String scope)
Build an elasticsearch client to be queried.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteDocument(String docID)
Delete from the index a document with id docID.
|
protected void |
finalize() |
List<org.gcube.portal.databook.shared.EnhancedFeed> |
search(String query,
Set<String> vreIDS,
int from,
int quantity)
Given a query, the method find matching enhanced feeds into the elasticsearch index and return
at most quantity hits starting from from.
|
List<org.gcube.portal.databook.shared.EnhancedFeed> |
searchInField(String query,
Set<String> vreIDS,
int from,
int quantity,
org.gcube.socialnetworking.social_data_indexing_common.utils.SearchableFields field)
Given a query, the method find matching enhanced feeds into the elasticsearch index and return
at most quantity hits starting from from.
|
public List<org.gcube.portal.databook.shared.EnhancedFeed> search(String query, Set<String> vreIDS, int from, int quantity)
ElasticSearchClientsearch in interface ElasticSearchClientquery - the query to matchvreIDS - specifies the vre(s) to which the returning feeds must belongfrom - start hits indexquantity - max number of hits to return starting from frompublic List<org.gcube.portal.databook.shared.EnhancedFeed> searchInField(String query, Set<String> vreIDS, int from, int quantity, org.gcube.socialnetworking.social_data_indexing_common.utils.SearchableFields field)
ElasticSearchClientsearchInField in interface ElasticSearchClientquery - the query to matchvreIDS - specifies the vre(s) to which the returning feeds must belongfrom - start hits indexquantity - max number of hits to return starting from fromfield - the field against which the query is performedpublic boolean deleteDocument(String docID)
ElasticSearchClientdeleteDocument in interface ElasticSearchClientdocID - the id of the doc to deleteCopyright © 2017. All Rights Reserved.