Class ElasticsearchDocumentsService

java.lang.Object
org.alfresco.repo.search.impl.elasticsearch.admin.ElasticsearchDocumentsService

public class ElasticsearchDocumentsService extends Object
Class to retrieve documents from an Elasticsearch cluster.
  • Constructor Details

    • ElasticsearchDocumentsService

      public ElasticsearchDocumentsService()
  • Method Details

    • getDocuments

      public List<ElasticsearchDocument> getDocuments(List<String> id, int size)
    • 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)