Interface TargetSelector<T>
public interface TargetSelector<T>
Allows adding extra targets that the federation searcher should federate to.
For each federation search call, the federation searcher will call targetSelector.getTargets.
Then, for each target, it will:
1) call modifyTargetQuery(target, query)
2) call modifyTargetResult(target, result)
- Author:
- Tony Vaagenes
-
Method Summary
Modifier and TypeMethodDescriptiongetTargets
(Query query, com.yahoo.processing.execution.chain.ChainRegistry<Searcher> searcherChainRegistry) void
modifyTargetQuery
(FederationTarget<T> target, Query query) For modifying the query before sending it to a the targetvoid
modifyTargetResult
(FederationTarget<T> target, Result result) For modifying the result produced by the target.
-
Method Details
-
getTargets
Collection<FederationTarget<T>> getTargets(Query query, com.yahoo.processing.execution.chain.ChainRegistry<Searcher> searcherChainRegistry) -
modifyTargetQuery
For modifying the query before sending it to a the target -
modifyTargetResult
For modifying the result produced by the target.
-