Package org.nuxeo.elasticsearch.fetcher
Class EsFetcher
- java.lang.Object
-
- org.nuxeo.elasticsearch.fetcher.Fetcher
-
- org.nuxeo.elasticsearch.fetcher.EsFetcher
-
public class EsFetcher extends Fetcher
- Since:
- 6.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EsFetcher.HitDocConsumer
Consumes both a SearchHit and DocumentModel.
-
Field Summary
Fields Modifier and Type Field Description protected EsFetcher.HitDocConsumer
consumer
-
Constructor Summary
Constructors Constructor Description EsFetcher(CoreSession session, org.elasticsearch.action.search.SearchResponse response, Map<String,String> repoNames)
EsFetcher(CoreSession session, org.elasticsearch.action.search.SearchResponse response, Map<String,String> repoNames, EsFetcher.HitDocConsumer consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModelListImpl
fetchDocuments()
-
Methods inherited from class org.nuxeo.elasticsearch.fetcher.Fetcher
getRepoForIndex, getResponse, getSession
-
-
-
-
Field Detail
-
consumer
protected final EsFetcher.HitDocConsumer consumer
-
-
Constructor Detail
-
EsFetcher
public EsFetcher(CoreSession session, org.elasticsearch.action.search.SearchResponse response, Map<String,String> repoNames)
-
EsFetcher
public EsFetcher(CoreSession session, org.elasticsearch.action.search.SearchResponse response, Map<String,String> repoNames, EsFetcher.HitDocConsumer consumer)
- Since:
- 10.2
-
-
Method Detail
-
fetchDocuments
public DocumentModelListImpl fetchDocuments()
- Specified by:
fetchDocuments
in classFetcher
-
-