Uses of Class
com.yahoo.search.Result
-
Packages that use Result Package Description com.yahoo.search The top level classes of the search container. A Query represents the incoming request, which produces a Result by chained execution of a set of Searchers.com.yahoo.search.cluster Standard searchers to compose in source search chains (those containing searchers specific for one source and which ends with a call to some provider) which calls a cluster of provider nodes.com.yahoo.search.federation The federation layer on top of the search container.com.yahoo.search.federation.selection com.yahoo.search.grouping com.yahoo.search.handler The search handler, which handles search request to the Container by translating the Request into a Query, invoking the chosen Search Chain to get a Result, which it translates to a Response which is returned to the Container.com.yahoo.search.pagetemplates com.yahoo.search.pagetemplates.engine com.yahoo.search.pagetemplates.engine.resolvers com.yahoo.search.pagetemplates.result com.yahoo.search.query.rewrite com.yahoo.search.rendering com.yahoo.search.result The content of a Result produced in response to a Query.com.yahoo.search.searchchain Classes for composition of searchers into search chains, which are executed to produce Results for Queries.com.yahoo.search.searchers Various useful searcherscom.yahoo.search.statistics -
-
Uses of Result in com.yahoo.search
Methods in com.yahoo.search that return Result Modifier and Type Method Description Result
Result. clone()
Deep clones this result - copies are made of all hits and subgroups of hits, but not of the query referenced by this.abstract Result
Searcher. search(Query query, Execution execution)
Override this to implement your searcher.Methods in com.yahoo.search with parameters of type Result Modifier and Type Method Description void
Searcher. ensureFilled(Result result, java.lang.String summaryClass, Execution execution)
Fills the result if it is not already filled for the given summary class.void
Searcher. fill(Result result, java.lang.String summaryClass, Execution execution)
Fill hit properties with data using the given summary class.void
Result. mergeWith(Result result)
Merges meta information from a result into this.void
Result. mergeWithAfterFill(Result result)
Merges meta information produced when a Hit already contained in this result has been filled using another result as an intermediary. -
Uses of Result in com.yahoo.search.cluster
Methods in com.yahoo.search.cluster that return Result Modifier and Type Method Description protected Result
ClusterSearcher. robustSearch(Query query, Execution execution, T connection)
Call search(Query, Execution, T) and handle any exceptions returned which we do not want to propagate upwards By default this catches all runtime exceptions and puts them into the resultResult
ClusterSearcher. search(Query query, Execution execution)
protected Result
ClusterSearcher. search(Query query, Execution execution, ErrorMessage message)
This is called (instead of search(query, execution, connection) to handle searches where no (suitable) backend was available.protected abstract Result
ClusterSearcher. search(Query query, Execution execution, T connection)
Perform the search against the given connection.Methods in com.yahoo.search.cluster with parameters of type Result Modifier and Type Method Description void
ClusterSearcher. fill(Result result, java.lang.String summaryClass, Execution execution)
protected abstract void
ClusterSearcher. fill(Result result, java.lang.String summaryClass, Execution execution, T connection)
Perform the fill against the given connection.protected boolean
ClusterSearcher. shouldRetry(Query query, Result result)
Returns whether this query and result should be retried against another connection if possible. -
Uses of Result in com.yahoo.search.federation
Methods in com.yahoo.search.federation that return Result Modifier and Type Method Description Result
FederationSearcher. search(Query query, Execution execution)
Result
ForwardingSearcher. search(Query query, Execution execution)
Methods in com.yahoo.search.federation with parameters of type Result Modifier and Type Method Description void
FederationSearcher. fill(Result result, java.lang.String summaryClass, Execution execution)
void
ForwardingSearcher. fill(Result result, java.lang.String summaryClass, Execution execution)
-
Uses of Result in com.yahoo.search.federation.selection
Methods in com.yahoo.search.federation.selection with parameters of type Result Modifier and Type Method Description void
TargetSelector. modifyTargetResult(FederationTarget<T> target, Result result)
For modifying the result produced by the target. -
Uses of Result in com.yahoo.search.grouping
Methods in com.yahoo.search.grouping that return Result Modifier and Type Method Description Result
GroupingQueryParser. search(Query query, Execution execution)
Result
GroupingValidator. search(Query query, Execution execution)
Result
UniqueGroupingSearcher. search(Query query, Execution execution)
Implements the deprecated "unique" api for deduplication by using grouping.Methods in com.yahoo.search.grouping with parameters of type Result Modifier and Type Method Description RootGroup
GroupingRequest. getResultGroup(Result result)
Returns the root resultRootGroup
that corresponds to this request. -
Uses of Result in com.yahoo.search.handler
Methods in com.yahoo.search.handler that return Result Modifier and Type Method Description Result
HttpSearchResponse. getResult()
Returns the result wrapped by thisResult
SearchHandler. searchAndFill(Query query, com.yahoo.component.chain.Chain<? extends Searcher> searchChain)
Used from container SDK, for internal use onlyMethods in com.yahoo.search.handler that return types with arguments of type Result Modifier and Type Method Description com.yahoo.processing.rendering.Renderer<Result>
SearchHandler. getRendererCopy(com.yahoo.component.ComponentSpecification spec)
For internal use onlyMethods in com.yahoo.search.handler with parameters of type Result Modifier and Type Method Description static com.yahoo.container.logging.HitCounts
SearchResponse. createHitCounts(Query query, Result result)
static com.yahoo.container.handler.Timing
SearchResponse. createTiming(Query query, Result result)
static com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean>
HttpSearchResponse. waitableRender(Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer, java.io.OutputStream stream)
Method parameters in com.yahoo.search.handler with type arguments of type Result Modifier and Type Method Description static com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean>
HttpSearchResponse. waitableRender(Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer, java.io.OutputStream stream)
Constructors in com.yahoo.search.handler with parameters of type Result Constructor Description HttpSearchResponse(int status, Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer)
Constructor parameters in com.yahoo.search.handler with type arguments of type Result Constructor Description HttpSearchResponse(int status, Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer)
-
Uses of Result in com.yahoo.search.pagetemplates
Methods in com.yahoo.search.pagetemplates that return Result Modifier and Type Method Description Result
PageTemplateSearcher. search(Query query, Execution execution)
-
Uses of Result in com.yahoo.search.pagetemplates.engine
Methods in com.yahoo.search.pagetemplates.engine with parameters of type Result Modifier and Type Method Description void
Organizer. organize(Choice templateChoice, Resolution resolution, Result result)
Organizes the given resultResolution
Resolver. resolve(Choice pageTemplate, Query query, Result result)
Override this to resolve choices.void
Resolver. resolve(Choice choice, Query query, Result result, Resolution resolution)
Override this to resolve each choice independently.void
Resolver. resolve(MapChoice choice, Query query, Result result, Resolution resolution)
Override this to resolve each map choice independently. -
Uses of Result in com.yahoo.search.pagetemplates.engine.resolvers
Methods in com.yahoo.search.pagetemplates.engine.resolvers with parameters of type Result Modifier and Type Method Description void
DeterministicResolver. resolve(Choice choice, Query query, Result result, Resolution resolution)
Chooses the last alternative of any choicevoid
DeterministicResolver. resolve(MapChoice choice, Query query, Result result, Resolution resolution)
Chooses a mapping which is always by the literal order given in the source templatevoid
RandomResolver. resolve(Choice choice, Query query, Result result, Resolution resolution)
Chooses the last alternative of any choicevoid
RandomResolver. resolve(MapChoice choice, Query query, Result result, Resolution resolution)
Chooses a mapping which is always by the literal order given in the source template -
Uses of Result in com.yahoo.search.pagetemplates.result
Methods in com.yahoo.search.pagetemplates.result with parameters of type Result Modifier and Type Method Description void
PageTemplatesXmlRenderer. error(com.yahoo.text.XMLWriter writer, Result result)
-
Uses of Result in com.yahoo.search.query.rewrite
Methods in com.yahoo.search.query.rewrite that return Result Modifier and Type Method Description Result
QueryRewriteSearcher. search(Query query, Execution execution)
Perform main rewrite logics for this searcher
- Skip to next rewriter if query is previously rewritten and getSkipRewriterIfRewritten() is true for this rewriter
- Execute rewriter's main rewrite logic
- Pass to the next rewriter the query to be used for dictionary retrievalResult
SearchChainDispatcherSearcher. search(Query query, Execution execution)
Execute another search chain specified by the user
- Retrieve search chain specified by the user through param
- Execute specified search chain if exist -
Uses of Result in com.yahoo.search.rendering
Methods in com.yahoo.search.rendering that return types with arguments of type Result Modifier and Type Method Description com.yahoo.processing.rendering.Renderer<Result>
RendererRegistry. getDefaultRenderer()
Returns the default JSON renderercom.yahoo.processing.rendering.Renderer<Result>
RendererRegistry. getRenderer(com.yahoo.component.ComponentSpecification format)
Returns the requested renderer.Methods in com.yahoo.search.rendering with parameters of type Result Modifier and Type Method Description abstract void
SectionedRenderer. beginResult(WRITER writer, Result result)
Called at the start of rendering.abstract void
SectionedRenderer. emptyResult(WRITER writer, Result result)
Called if there are no hits in the result.protected void
SyncDefaultRenderer. emptyResult(com.yahoo.text.XMLWriter writer, Result result)
protected void
XmlRenderer. emptyResult(com.yahoo.text.XMLWriter writer, Result result)
abstract void
SectionedRenderer. endResult(WRITER writer, Result result)
Called at the end of rendering.void
SyncDefaultRenderer. endResult(com.yahoo.text.XMLWriter writer, Result result)
void
SyncDefaultRenderer. error(com.yahoo.text.XMLWriter writer, Result result)
void
XmlRenderer. error(com.yahoo.text.XMLWriter writer, Result result)
java.lang.String
Renderer. getCharacterEncoding(Result result)
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean>
Renderer. render(java.io.OutputStream stream, Result response, com.yahoo.processing.execution.Execution execution, com.yahoo.processing.Request request)
Renders synchronously and returns when rendering is complete.protected abstract void
Renderer. render(java.io.Writer writer, Result result)
Renders the result to the writer.void
SectionedRenderer. render(java.io.Writer writer, Result result)
Picks apart the result and feeds it to the other methods.void
SyncDefaultRenderer. render(java.io.Writer writer, Result result)
Renders this result -
Uses of Result in com.yahoo.search.result
Constructors in com.yahoo.search.result with parameters of type Result Constructor Description HitIterator(Result result, java.util.List<Hit> hits)
-
Uses of Result in com.yahoo.search.searchchain
Methods in com.yahoo.search.searchchain that return Result Modifier and Type Method Description Result
FutureResult. get()
Returns a Result containing the hits returned from this source, or an error otherwise.Result
FutureResult. get(long timeout, java.util.concurrent.TimeUnit timeunit)
Returns a Result containing the hits returned from this source, or an error otherwise.Result
Execution. search(Query query)
Calls search on the next searcher in this chain.Methods in com.yahoo.search.searchchain that return types with arguments of type Result Modifier and Type Method Description java.util.Optional<Result>
FutureResult. getIfAvailable(long timeout, java.util.concurrent.TimeUnit timeunit)
Same as get(timeout, timeunit) but returns Optional.empty instead of a result with error if the result is not available in timestatic java.util.List<Result>
AsyncExecution. waitForAll(java.util.Collection<FutureResult> tasks, long timeoutMs)
Methods in com.yahoo.search.searchchain with parameters of type Result Modifier and Type Method Description FutureResult
AsyncExecution. fill(Result result, java.lang.String summaryClass)
The future of this functions returns the original Resultvoid
Execution. fill(Result result)
Fill hit properties with data using the default summary class, possibly overridden with the 'summary' request parameter.void
Execution. fill(Result result, java.lang.String summaryClass)
Calls fill on the next searcher in this chain.void
Execution. fillAttributes(Result result)
Fill hit properties with values from all in-memory attributes.Constructor parameters in com.yahoo.search.searchchain with type arguments of type Result Constructor Description FutureResult(java.util.concurrent.Callable<Result> callable, Execution execution, Query query)
-
Uses of Result in com.yahoo.search.searchers
Methods in com.yahoo.search.searchers that return Result Modifier and Type Method Description Result
CacheControlSearcher. search(Query query, Execution execution)
Result
ConnectionControlSearcher. search(Query query, Execution execution)
Result
ContainerLatencySearcher. search(Query query, Execution execution)
Result
InputCheckingSearcher. search(Query query, Execution execution)
Result
QueryValidator. search(Query query, Execution execution)
Result
RateLimitingSearcher. search(Query query, Execution execution)
Result
ValidateMatchPhaseSearcher. search(Query query, Execution execution)
Result
ValidateNearestNeighborSearcher. search(Query query, Execution execution)
-
Uses of Result in com.yahoo.search.statistics
Methods in com.yahoo.search.statistics that return Result Modifier and Type Method Description Result
PeakQpsSearcher. search(Query query, Execution execution)
Result
TimingSearcher. search(Query query, Execution execution)
Methods in com.yahoo.search.statistics with parameters of type Result Modifier and Type Method Description void
TimingSearcher. fill(Result result, java.lang.String summaryClass, Execution execution)
void
TimeTracker. sampleFillReturn(int searcherIndex, boolean detailed, Result annotationReference)
void
TimeTracker. sampleSearchReturn(int searcherIndex, boolean detailed, Result annotationReference)
-