use of io.vertigo.dynamo.search.metamodel.SearchLoader in project vertigo by KleeGroup.
the class ReindexTask method loadAndIndex.
private void loadAndIndex(final SearchChunk<? extends KeyConcept> searchChunk) {
final SearchLoader searchLoader = Home.getApp().getComponentSpace().resolve(searchIndexDefinition.getSearchLoaderId(), SearchLoader.class);
final Collection<SearchIndex<KeyConcept, DtObject>> searchIndexes;
searchIndexes = searchLoader.loadData(searchChunk);
removedNotFoundKeyConcept(searchIndexes, searchChunk);
if (!searchIndexes.isEmpty()) {
searchManager.putAll(searchIndexDefinition, searchIndexes);
}
}
Aggregations