Package com.yahoo.search.searchchain
Class SearchChain
java.lang.Object
com.yahoo.component.chain.Chain<Searcher>
com.yahoo.search.searchchain.SearchChain
A named collection of searchers.
The searchers may have dependencies which define an ordering of the searchers of this chain.
Search chains may inherit the searchers of other chains and modify the inherited set of searchers.
Search chains may be versioned. The version and name string combined is an unique identifier of a search chain.
A search chain cannot be modified once constructed.
- Author:
- bratseth
-
Constructor Summary
ConstructorDescriptionSearchChain
(com.yahoo.component.chain.Chain<Searcher> chain) For internal use only!SearchChain
(com.yahoo.component.ComponentId id) SearchChain
(com.yahoo.component.ComponentId id, Searcher... searchers) SearchChain
(com.yahoo.component.ComponentId id, Collection<Searcher> searchers) SearchChain
(com.yahoo.component.ComponentId id, Collection<Searcher> searchers, Collection<com.yahoo.component.chain.Phase> phases) Creates a search chain. -
Method Summary
Methods inherited from class com.yahoo.component.chain.Chain
components, equals, getId, hashCode
-
Constructor Details
-
SearchChain
public SearchChain(com.yahoo.component.ComponentId id) -
SearchChain
-
SearchChain
-
SearchChain
public SearchChain(com.yahoo.component.ComponentId id, Collection<Searcher> searchers, Collection<com.yahoo.component.chain.Phase> phases) Creates a search chain.This search chain makes a copy of the given lists before return and does not modify the argument lists.
The total set of searchers included in this chain will be
- The searchers given in
searchers
. - Plus all searchers returned by
searchers()
on all search chains ininherited
. If a searcher with a given name is present in thesearchers
list in any version, that version will be used, and a searcher with that name will never be included from an inherited search chain. If the same searcher exists in multiple inherited chains, the highest version will be used. - Minus all searchers, of any version, whose name exists in the
excluded
list.
- Parameters:
id
- the id of this search chainsearchers
- the searchers of this chain, or null if nonephases
- the phases of this chain
- The searchers given in
-
SearchChain
For internal use only!
-
-
Method Details
-
searchers
Returns an unmodifiable list of the searchers this search chain executs, in resolved execution order. This includes all inherited (and not excluded) searchers. -
toString
- Overrides:
toString
in classcom.yahoo.component.chain.Chain<Searcher>
-