public class ElasticSearchClientImpl extends Object implements ElasticSearchClientInterface
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
_log |
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.
|
List<org.gcube.portal.databook.shared.EnhancedFeed> |
searchInEnhancedFeeds(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.
|
public List<org.gcube.portal.databook.shared.EnhancedFeed> searchInEnhancedFeeds(String query, Set<String> vreIDS, int from, int quantity)
ElasticSearchClientInterface
searchInEnhancedFeeds
in interface ElasticSearchClientInterface
query
- 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 boolean deleteDocument(String docID)
ElasticSearchClientInterface
deleteDocument
in interface ElasticSearchClientInterface
docID
- the id of the doc to deleteCopyright © 2016. All Rights Reserved.