Package com.yahoo.search.grouping
Class UniqueGroupingSearcher
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.search.grouping.UniqueGroupingSearcher
- All Implemented Interfaces:
com.yahoo.component.chain.model.Chainable,com.yahoo.component.Component,com.yahoo.component.Deconstructable,Comparable<com.yahoo.component.Component>
Implements 'unique' using a grouping expression.
It doesn't work for multi-level sorting.
- Author:
- andreer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.yahoo.processing.request.CompoundNameFields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.yahoo.search.Searcher
ensureFilled, fill, getLogger, process, toStringMethods inherited from class com.yahoo.component.chain.ChainedComponent
getDependencies, initDependenciesMethods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructableMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.component.chain.model.Chainable
getAnnotatedDependencies
-
Field Details
-
PARAM_UNIQUE
public static final com.yahoo.processing.request.CompoundName PARAM_UNIQUE
-
-
Constructor Details
-
UniqueGroupingSearcher
public UniqueGroupingSearcher()
-
-
Method Details
-
search
Implements the deprecated "unique" api for deduplication by using grouping. We create a grouping expression on the field we wish to dedup on (which must be an attribute). Total hits is calculated using the new count unique groups functionality.
-