Uses of Class
com.yahoo.search.Result
Package
Description
Cluster monitoring for content clusters queried over fnet.
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.
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.
The federation layer on top of the search container.
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.
Vespa search platform query transformation infrastructure.
The content of a Result produced in response to a Query.
Classes for composition of searchers into search chains, which are executed to produce Results for Queries.
Various useful searchers
YQL+ integration.
-
Uses of Result in com.yahoo.prelude.cluster
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.prelude.fastsearch
Modifier and TypeMethodDescriptionprotected abstract Result
Searches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.Modifier and TypeMethodDescriptionprotected void
FastSearcher.doPartialFill
(Result result, String summaryClass) Perform a partial docsum fill for a temporary result representing a partition of the complete fill request.protected abstract void
VespaBackEndSearcher.doPartialFill
(Result result, String summaryClass) void
protected VespaBackEndSearcher.FillHitsResult
VespaBackEndSearcher.fillHits
(Result result, DocsumPacket[] packets, String summaryClass) Fills the hits. -
Uses of Result in com.yahoo.prelude.querytransform
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.prelude.searcher
Modifier and TypeMethodDescriptionprotected Result
BlendingSearcher.blendResults
(Result result, Query q, int offset, int hits, Execution execution) Produce a single blended hit list from a group of hitgroups.First fetch result from the next searcher in the chain.Convert Juniper style property highlighting to XML style.Modifier and TypeMethodDescriptionprotected Result
BlendingSearcher.blendResults
(Result result, Query q, int offset, int hits, Execution execution) Produce a single blended hit list from a group of hitgroups.void
Fills this result by forwarding to the right chained searchersvoid
-
Uses of Result in com.yahoo.prelude.semantics
-
Uses of Result in com.yahoo.prelude.statistics
-
Uses of Result in com.yahoo.search
Modifier and TypeMethodDescriptionResult.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
Override this to implement your searcher.Modifier and TypeMethodDescriptionfinal void
Searcher.ensureFilled
(Result result, String summaryClass, Execution execution) Fills the result if it is not already filled for the given summary class.void
Fill hit properties with data using the given summary class.void
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
Modifier and TypeMethodDescriptionprotected 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 resultfinal Result
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
Perform the search against the given connection.Modifier and TypeMethodDescriptionfinal void
protected abstract void
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.dispatch
Modifier and TypeMethodDescriptionInvokerResult.getResult()
Retrieve the hits for the givenQuery
.Modifier and TypeMethodDescriptionabstract FillInvoker
InvokerFactory.createFillInvoker
(VespaBackEndSearcher searcher, Result result) void
Retrieves document summaries for the unfilled hits in the givenResult
Dispatcher.getFillInvoker
(Result result, VespaBackEndSearcher searcher) protected abstract void
FillInvoker.getFillResults
(Result result, String summaryClass) protected abstract void
FillInvoker.sendFillRequest
(Result result, String summaryClass) -
Uses of Result in com.yahoo.search.dispatch.rpc
Modifier and TypeMethodDescriptionRpcInvokerFactory.createFillInvoker
(VespaBackEndSearcher searcher, Result result) protected void
RpcProtobufFillInvoker.getFillResults
(Result result, String summaryClass) protected void
RpcProtobufFillInvoker.sendFillRequest
(Result result, String summaryClass) -
Uses of Result in com.yahoo.search.federation
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.search.federation.selection
Modifier and TypeMethodDescriptionvoid
TargetSelector.modifyTargetResult
(FederationTarget<T> target, Result result) For modifying the result produced by the target. -
Uses of Result in com.yahoo.search.grouping
Modifier and TypeMethodDescriptionImplements the deprecated "unique" api for deduplication by using grouping.Modifier and TypeMethodDescriptionGroupingRequest.getResultGroup
(Result result) Returns the root resultRootGroup
that corresponds to this request. -
Uses of Result in com.yahoo.search.grouping.result
-
Uses of Result in com.yahoo.search.grouping.vespa
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.search.handler
Modifier and TypeMethodDescriptionHttpSearchResponse.getResult()
Returns the result wrapped by thisSearchHandler.searchAndFill
(Query query, com.yahoo.component.chain.Chain<? extends Searcher> searchChain) Used from container SDK, for internal use onlyModifier and TypeMethodDescriptioncom.yahoo.processing.rendering.Renderer<Result>
SearchHandler.getRendererCopy
(com.yahoo.component.ComponentSpecification spec) For internal use onlyModifier and TypeMethodDescriptionstatic CompletableFuture<Boolean>
HttpSearchResponse.asyncRender
(Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer, OutputStream stream) static com.yahoo.container.logging.HitCounts
SearchResponse.createHitCounts
(Query query, Result result) static com.yahoo.container.handler.Timing
SearchResponse.createTiming
(Query query, Result result) Modifier and TypeMethodDescriptionstatic CompletableFuture<Boolean>
HttpSearchResponse.asyncRender
(Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer, OutputStream stream) ModifierConstructorDescriptionHttpSearchResponse
(int status, Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer) ModifierConstructorDescriptionHttpSearchResponse
(int status, Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer) -
Uses of Result in com.yahoo.search.match
-
Uses of Result in com.yahoo.search.pagetemplates
-
Uses of Result in com.yahoo.search.pagetemplates.engine
Modifier and TypeMethodDescriptionvoid
Organizer.organize
(Choice templateChoice, Resolution resolution, Result result) Organizes the given resultOverride 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
Modifier and TypeMethodDescriptionvoid
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
-
Uses of Result in com.yahoo.search.query.rewrite
Modifier and TypeMethodDescriptionPerform 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 retrievalExecute 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.querytransform
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.search.ranking
Modifier and TypeMethodDescriptionvoid
GlobalPhaseRanker.rerankHits
(Query query, Result result, String schema) -
Uses of Result in com.yahoo.search.rendering
Modifier and TypeMethodDescriptioncom.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.Modifier and TypeMethodDescriptionabstract 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
Called at the end of rendering.void
void
void
Renderer.getCharacterEncoding
(Result result) protected abstract void
Renders the result to the writer.final void
Picks apart the result and feeds it to the other methods.void
Renders this resultfinal CompletableFuture<Boolean>
Renderer.renderResponse
(OutputStream stream, Result response, com.yahoo.processing.execution.Execution execution, com.yahoo.processing.Request request) Renders synchronously and returns when rendering is complete. -
Uses of Result in com.yahoo.search.result
-
Uses of Result in com.yahoo.search.searchchain
Modifier and TypeMethodDescriptionFutureResult.get()
Returns a Result containing the hits returned from this source, or an error otherwise.Returns a Result containing the hits returned from this source, or an error otherwise.Calls search on the next searcher in this chain.Modifier and TypeMethodDescriptionFutureResult.getIfAvailable
(long timeout, TimeUnit timeunit) Same as get(timeout, timeunit) but returns Optional.empty instead of a result with error if the result is not available in timeAsyncExecution.waitForAll
(Collection<FutureResult> tasks, long timeoutMs) Modifier and TypeMethodDescriptionThe future of this functions returns the original Resultvoid
Fill hit properties with data using the default summary class, possibly overridden with the 'summary' request parameter.void
Calls fill on the next searcher in this chain.void
Execution.fillAttributes
(Result result) Deprecated.use fill(Result, String)ModifierConstructorDescriptionFutureResult
(Callable<Result> callable, Execution execution, Query query) -
Uses of Result in com.yahoo.search.searchchain.example
-
Uses of Result in com.yahoo.search.searchchain.testutil
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.search.searchers
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.search.statistics
Modifier and TypeMethodDescriptionvoid
TimeTracker.sampleFillReturn
(int searcherIndex, boolean detailed, Result annotationReference) void
TimeTracker.sampleSearchReturn
(int searcherIndex, boolean detailed, Result annotationReference) -
Uses of Result in com.yahoo.search.yql
Modifier and TypeMethodDescription -
Uses of Result in com.yahoo.vespa.streamingvisitors
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionprotected void
StreamingSearcher.doPartialFill
(Result result, String summaryClass)