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>
public class FieldCollapsingSearcher extends Searcher
A searcher which does parametrized collapsing.- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description FieldCollapsingSearcher()
Create this searcher using default values for all settingsFieldCollapsingSearcher(int collapseSize, double extraFactor, String collapseField)
Creates a collapserFieldCollapsingSearcher(com.yahoo.container.QrSearchersConfig config)
FieldCollapsingSearcher(String collapseField)
Creates a collapser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
search(Query query, Execution execution)
First fetch result from the next searcher in the chain.-
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
-
-
-
-
Constructor Detail
-
FieldCollapsingSearcher
public FieldCollapsingSearcher()
Create this searcher using default values for all settings
-
FieldCollapsingSearcher
public FieldCollapsingSearcher(String collapseField)
Creates a collapser- Parameters:
collapseField
- the default field to collapse on, or null to not collapse as default
-
FieldCollapsingSearcher
@Inject public FieldCollapsingSearcher(com.yahoo.container.QrSearchersConfig config)
-
FieldCollapsingSearcher
public FieldCollapsingSearcher(int collapseSize, double extraFactor, String collapseField)
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 refetchingcollapseField
- the field to collapse on. This is currently ignored.
-
-