Search in sources :

Example 1 with SearchLoader

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);
    }
}
Also used : SearchIndex(io.vertigo.dynamo.search.model.SearchIndex) SearchLoader(io.vertigo.dynamo.search.metamodel.SearchLoader)

Aggregations

SearchLoader (io.vertigo.dynamo.search.metamodel.SearchLoader)1 SearchIndex (io.vertigo.dynamo.search.model.SearchIndex)1