public class FieldCollapsingSearcher extends Searcher
Constructor and Description |
---|
FieldCollapsingSearcher()
Create this searcher using default values for all settings
|
FieldCollapsingSearcher(int collapseSize,
double extraFactor,
String collapseField)
Creates a collapser
|
FieldCollapsingSearcher(com.yahoo.container.QrSearchersConfig config) |
FieldCollapsingSearcher(String collapseField)
Creates a collapser
|
Modifier and Type | Method and Description |
---|---|
Result |
search(Query query,
Execution execution)
First fetch result from the next searcher in the chain.
|
ensureFilled, fill, getLogger, process, toString
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
public FieldCollapsingSearcher()
public FieldCollapsingSearcher(String collapseField)
collapseField
- the default field to collapse on, or null to not collapse as default@Inject public FieldCollapsingSearcher(com.yahoo.container.QrSearchersConfig config)
public FieldCollapsingSearcher(int collapseSize, double extraFactor, String collapseField)
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.Copyright © 2018. All rights reserved.