i++;
log.info(" {}) {}",i,processor);
}
if(dataIterable != null && scoreProvider != null){
// iterate over data and lookup scores
indexer = new IndexerImpl(dataIterable, scoreProvider,
config.getNormaliser(),destination, processors,
config.getIndexedEntitiesIdsFile(),postProcessors);
} else if(idIterator != null && dataProvider != null){
// iterate over id and lookup data
indexer = new IndexerImpl(idIterator,dataProvider,
config.getNormaliser(),destination, processors,
config.getIndexedEntitiesIdsFile(),postProcessors);
} else if(dataIterable != null && idIterator != null){
// create an EntityIterator to EntityScoreProvider adapter
log.info(
"Create Adapter from the configured EntityIterator '{}' to the " +
"required EntityScoreProvider as needed together with the " +
"configured EntityDataIterable '{}'",
idIterator.getClass(), dataIterable.getClass());
indexer = new IndexerImpl(dataIterable,
new EntityIneratorToScoreProviderAdapter(idIterator),
config.getNormaliser(),destination, processors,
config.getIndexedEntitiesIdsFile(),postProcessors);
} else {
log.error("Invalid Indexing Source configuration: ");