Package com.yahoo.prelude.searcher
Class FieldCollapsingSearcher
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.prelude.searcher.FieldCollapsingSearcher
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Comparable<com.yahoo.component.Component>
A searcher which does parameterized collapsing.
- Author:
- Steinar Knutsen
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorDescriptionCreate this searcher using default values for all settingsFieldCollapsingSearcher
(int collapseSize, double extraFactor) Creates a collapserFieldCollapsingSearcher
(com.yahoo.container.QrSearchersConfig config) -
Method Summary
Methods inherited from class com.yahoo.search.Searcher
ensureFilled, fill, getLogger, process, toString
Methods inherited from class com.yahoo.component.chain.ChainedComponent
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable
-
Constructor Details
-
FieldCollapsingSearcher
public FieldCollapsingSearcher()Create this searcher using default values for all settings -
FieldCollapsingSearcher
@Inject public FieldCollapsingSearcher(com.yahoo.container.QrSearchersConfig config) -
FieldCollapsingSearcher
public FieldCollapsingSearcher(int collapseSize, double extraFactor) Creates a collapser- Parameters:
collapseSize
- the maximum number of hits to keep per field the default max number of hits in each collapsed groupextraFactor
- the percentage by which to scale up the requested number of hits, to allow some hits to be removed without refetching
-
-
Method Details