Class ElasticsearchDocumentsService
java.lang.Object
org.alfresco.repo.search.impl.elasticsearch.admin.ElasticsearchDocumentsService
Class to retrieve documents from an Elasticsearch cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocuments(List<String> id, int size) getDocuments(List<String> ids, List<String> sourceFields, int size) Get the documents currently indexed by the Elasticsearch cluster.voidsetElasticsearchHttpClientFactory(ElasticsearchHttpClientFactory elasticsearchHttpClientFactory)
-
Constructor Details
-
ElasticsearchDocumentsService
public ElasticsearchDocumentsService()
-
-
Method Details
-
getDocuments
-
getDocuments
public List<ElasticsearchDocument> getDocuments(List<String> ids, List<String> sourceFields, int size) Get the documents currently indexed by the Elasticsearch cluster.- Parameters:
ids- - The IDs of the documents to retrieve.sourceFields- - The fields to be included in the contents of the document _source.size- - Option that determines the number of search hits to return.- Returns:
- The documents or empty list if it was not possible to obtain documents.
-
setElasticsearchHttpClientFactory
public void setElasticsearchHttpClientFactory(ElasticsearchHttpClientFactory elasticsearchHttpClientFactory)
-