Package | Description |
---|---|
com.yahoo.fs4 | |
com.yahoo.prelude.cluster |
Cluster monitoring for content clusters queried over fnet.
|
com.yahoo.prelude.fastsearch | |
com.yahoo.prelude.querytransform | |
com.yahoo.prelude.searcher | |
com.yahoo.prelude.semantics | |
com.yahoo.prelude.statistics | |
com.yahoo.prelude.templates | |
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.dispatch | |
com.yahoo.search.federation |
The federation layer on top of the search container.
|
com.yahoo.search.federation.http | |
com.yahoo.search.federation.selection | |
com.yahoo.search.federation.vespa | |
com.yahoo.search.grouping | |
com.yahoo.search.grouping.vespa | |
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.match | |
com.yahoo.search.pagetemplates | |
com.yahoo.search.pagetemplates.engine | |
com.yahoo.search.pagetemplates.engine.resolvers | |
com.yahoo.search.query.rewrite | |
com.yahoo.search.querytransform |
Vespa search platform query transformation infrastructure.
|
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.searchchain.example | |
com.yahoo.search.searchchain.testutil | |
com.yahoo.search.searchers |
Various useful searchers
|
com.yahoo.search.statistics | |
com.yahoo.search.yql |
YQL+ integration.
|
com.yahoo.vespa.streamingvisitors |
Modifier and Type | Field and Description |
---|---|
private Result |
GetDocSumsPacket.result |
Modifier and Type | Method and Description |
---|---|
static GetDocSumsPacket |
GetDocSumsPacket.create(Result result,
String summaryClass,
boolean sendQuery)
Creates a get docsums packet for a certain result
|
Constructor and Description |
---|
GetDocSumsPacket(Result result,
String summaryClass,
boolean sendQuery) |
Modifier and Type | Method and Description |
---|---|
private Result |
ClusterSearcher.checkValidRankProfiles(Query query,
Set<String> docTypes)
Returns an error if the document types do not have the requested rank
profile.
|
private Result |
ClusterSearcher.doSearch(Searcher searcher,
Query query,
Execution execution) |
Result |
ClusterSearcher.search(Query query,
Execution execution) |
private Result |
ClusterSearcher.searchMultipleDocumentTypes(Searcher searcher,
Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
void |
ClusterSearcher.doFill(Searcher searcher,
Result result,
String summaryClass,
Execution execution) |
void |
ClusterSearcher.fill(Result result,
String summaryClass,
Execution execution) |
private void |
ClusterSearcher.updateCacheHitRatio(Result result,
Query query) |
Modifier and Type | Method and Description |
---|---|
private Result |
VespaBackEndSearcher.cacheLookupFirstPhase(CacheKey key,
QueryPacketData queryPacketData,
Query query,
int offset,
int hits,
String summaryClass) |
protected abstract Result |
VespaBackEndSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution)
Searches a search cluster
This is an endpoint - searchers will never propagate the search to any nested searcher.
|
Result |
FastSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution) |
private Result |
VespaBackEndSearcher.getCached(CacheKey cacheKey,
QueryPacketData queryPacketData,
Query query)
Returns a cached result, or null if no result was cached for this key
|
Result |
VespaBackEndSearcher.search(Query query,
Execution execution) |
private Result |
FastSearcher.searchTwoPhase(FS4Channel channel,
Query query,
QueryPacket queryPacket,
CacheKey cacheKey) |
Modifier and Type | Method and Description |
---|---|
private List<Result> |
VespaBackEndSearcher.partitionHits(Result result,
String summaryClass) |
Modifier and Type | Method and Description |
---|---|
private boolean |
VespaBackEndSearcher.addCachedHits(Result result,
PacketWrapper packetWrapper,
String summaryClass,
List<DocumentInfo> documents) |
protected void |
VespaBackEndSearcher.addMetaInfo(Query query,
QueryPacketData queryPacketData,
QueryResultPacket resultPacket,
Result result,
boolean fromCache) |
protected boolean |
VespaBackEndSearcher.addUnfilledHits(Result result,
List<DocumentInfo> documents,
boolean fromCache,
QueryPacketData queryPacketData,
CacheKey cacheKey)
Creates unfilled hits from a List of DocumentInfo instances.
|
protected PacketWrapper |
VespaBackEndSearcher.cacheLookupTwoPhase(CacheKey cacheKey,
Result result,
String summaryClass) |
private int |
FastSearcher.countFastHits(Result result) |
protected abstract void |
VespaBackEndSearcher.doPartialFill(Result result,
String summaryClass) |
protected void |
FastSearcher.doPartialFill(Result result,
String summaryClass)
Perform a partial docsum fill for a temporary result
representing a partition of the complete fill request.
|
private Packet[] |
FastSearcher.fetchSummaries(FS4Channel channel,
Result result,
String summaryClass) |
void |
VespaBackEndSearcher.fill(Result result,
String summaryClass,
Execution execution) |
protected int |
VespaBackEndSearcher.fillHits(Result result,
int packetIndex,
Packet[] packets,
String summaryClass)
Fills the hits.
|
private void |
FastSearcher.fillSDDocName(Result result)
Only used to fill the sddocname field when using direct dispatching as that is normally done in VespaBackEndSearcher.decodeSummary
|
private DocsumPacketKey[] |
FastSearcher.getPacketKeys(Result result,
String summaryClass,
boolean filled)
Returns an array of the hits contained in this result
|
protected Iterator<Hit> |
VespaBackEndSearcher.hitIterator(Result result)
Returns an iterator which returns all hits below this result
|
private void |
VespaBackEndSearcher.mergeErrorsInto(Result destination,
Result source) |
private List<Result> |
VespaBackEndSearcher.partitionHits(Result result,
String summaryClass) |
private boolean |
VespaBackEndSearcher.useRowInIndexUri(Result result) |
Modifier and Type | Method and Description |
---|---|
Result |
StemmingSearcher.search(Query query,
Execution execution) |
Result |
RecallSearcher.search(Query query,
Execution execution) |
Result |
NormalizingSearcher.search(Query query,
Execution execution) |
Result |
PhrasingSearcher.search(Query query,
Execution execution) |
Result |
LiteralBoostSearcher.search(Query query,
Execution execution) |
Result |
NoRankingSearcher.search(Query query,
Execution execution) |
Result |
CJKSearcher.search(Query query,
Execution execution) |
Result |
IndexCombinatorSearcher.search(Query query,
Execution execution) |
Result |
NonPhrasingSearcher.search(Query query,
Execution execution) |
Result |
CollapsePhraseSearcher.search(Query query,
Execution execution) |
Modifier and Type | Field and Description |
---|---|
private Result |
DocumentSourceSearcher.defaultFilledResult |
private Result |
MultipleResultsSearcher.HitsRetriever.initialResult |
protected Result |
BlendingSearcher.DocumentMerger.result |
Modifier and Type | Field and Description |
---|---|
private Map<Query,Result> |
DocumentSourceSearcher.attributeFilledResults |
private Cache<QueryCacheKey,Result> |
CachingSearcher.cache |
private Map<Query,Result> |
DocumentSourceSearcher.completelyFilledResults |
private Map<Query,Result> |
DocumentSourceSearcher.unFilledResults |
Modifier and Type | Method and Description |
---|---|
protected Result |
BlendingSearcher.blendResults(Result result,
Query q,
int offset,
int hits,
Execution execution)
Produce a single blended result list from a group of hitgroups.
|
private Result |
BlendingSearcher.blendResultsDirectly(Result result,
Query q,
int offset,
int hits,
List<HitGroup> groups,
Execution execution) |
private Result |
BlendingSearcher.blendResultsUniquely(Result result,
Query q,
int offset,
int hits,
List<HitGroup> groups,
Execution execution) |
(package private) Result |
MultipleResultsSearcher.HitsRetriever.createMultipleResultSets() |
(package private) Result |
BlendingSearcher.DocumentMerger.getResult() |
private Result |
MultipleResultsSearcher.HitsRetriever.retrieveHits() |
Result |
PosSearcher.search(Query query,
Execution execution) |
Result |
FillSearcher.search(Query query,
Execution execution) |
Result |
QuerySnapshotSearcher.search(Query query,
Execution execution) |
Result |
ValidateSortingSearcher.search(Query query,
Execution execution) |
Result |
BlendingSearcher.search(Query query,
Execution execution) |
Result |
FieldCollapsingSearcher.search(Query query,
Execution execution)
First fetch result from the next searcher in the chain.
|
Result |
QueryValidatingSearcher.search(Query query,
Execution execution) |
Result |
DocumentSourceSearcher.search(Query query,
Execution execution) |
Result |
CachingSearcher.search(Query query,
Execution execution) |
Result |
ValidatePredicateSearcher.search(Query query,
Execution execution) |
Result |
JSONDebugSearcher.search(Query query,
Execution execution) |
Result |
JuniperSearcher.search(Query query,
Execution execution)
Convert Juniper style property highlighting to XML style.
|
Result |
MultipleResultsSearcher.search(Query query,
Execution e) |
Result |
QuotingSearcher.search(Query query,
Execution execution) |
private Result |
FieldCollapsingSearcher.search(Query query,
Execution execution,
int offset,
int hits) |
private Result |
BlendingSearcher.sortAndTrimResults(Result result,
Query q,
int offset,
int hits,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
MultipleResultsSearcher.PartitionedResult.addHits(Result result) |
(package private) void |
MultipleResultsSearcher.PartitionedResult.addHits(Result result,
boolean addOtherHits) |
boolean |
DocumentSourceSearcher.addResultSet(Query query,
Result fullResult)
Adds a result which can be returned either as empty,
filled or attribute only filled later.
|
protected Result |
BlendingSearcher.blendResults(Result result,
Query q,
int offset,
int hits,
Execution execution)
Produce a single blended result list from a group of hitgroups.
|
private Result |
BlendingSearcher.blendResultsDirectly(Result result,
Query q,
int offset,
int hits,
List<HitGroup> groups,
Execution execution) |
private Result |
BlendingSearcher.blendResultsUniquely(Result result,
Query q,
int offset,
int hits,
List<HitGroup> groups,
Execution execution) |
private void |
FieldCollapsingSearcher.collapse(Result result,
Map<String,Integer> knownCollapses,
Result resultSource,
String collapseField,
int collapseSize)
Collapse logic.
|
void |
FillSearcher.fill(Result result,
String summaryClass,
Execution execution) |
void |
BlendingSearcher.fill(Result result,
String summaryClass,
Execution execution)
Fills this result by forwarding to the right chained searchers
|
void |
DocumentSourceSearcher.fill(Result result,
String summaryClass,
Execution execution) |
void |
JuniperSearcher.fill(Result result,
String summaryClass,
Execution execution) |
private void |
DocumentSourceSearcher.fillHits(Result source,
Result target,
String summaryClass) |
private Hit |
DocumentSourceSearcher.lookupBySummaryId(Result result,
String summaryId) |
private Result |
BlendingSearcher.sortAndTrimResults(Result result,
Query q,
int offset,
int hits,
Execution execution) |
Constructor and Description |
---|
BasicMerger(Result result,
HitGroup group) |
PartitionedResult(List<MultipleResultsSearcher.DocumentGroup> documentGroups,
Result result) |
UniqueMerger(Result result,
HitGroup group,
Set<String> documentsToStrip) |
Modifier and Type | Method and Description |
---|---|
private Result |
SemanticSearcher.handleError(RuleBase ruleBase,
Query query,
String error) |
Result |
SemanticSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
Result |
StatisticsSearcher.search(Query query,
Execution execution)
Generate statistics for the query passing through this Searcher
1) Add 1 to total query count
2) Add response time to total response time (time from entry to return)
3) .....
|
Modifier and Type | Method and Description |
---|---|
private com.yahoo.jdisc.Metric.Context |
StatisticsSearcher.getDimensions(String source,
Result r,
Execution execution) |
private void |
StatisticsSearcher.incrementStatePageOnlyErrors(Result result,
Execution execution)
Creates error metric for StateHandler only.
|
private void |
StatisticsSearcher.incrErrorCount(Result result,
com.yahoo.jdisc.Metric.Context metricContext) |
Modifier and Type | Method and Description |
---|---|
void |
SearchRendererAdaptor.beginResult(Writer writer,
Result result) |
static void |
SearchRendererAdaptor.callRender(OutputStream stream,
Result result)
A legacy test utility - do not use.
|
void |
SearchRendererAdaptor.emptyResult(Writer writer,
Result result) |
void |
SearchRendererAdaptor.endResult(Writer writer,
Result result) |
Template<T> |
TemplateSet.getError(Result result)
Deprecated.
Returns the error body template
|
Template<T> |
TemplateSet.getFooter(Result result)
Deprecated.
Returns the result footer template
|
Template<T> |
TemplateSet.getHeader(Result result)
Deprecated.
Returns the result header template
|
Template<T> |
TemplateSet.getNohits(Result result)
Deprecated.
Returns the empty body template
|
Template<T> |
TemplateSet.getQueryContext(Result result)
Deprecated.
|
void |
SearchRendererAdaptor.render(Writer writer,
Result result)
Renders this result
|
private void |
DefaultTemplateSet.renderTime(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
Searcher.ensureFilled(Result result,
String summaryClass,
Execution execution)
Fills the result if it is not already filled for the given summary class.
|
void |
Searcher.fill(Result result,
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.
|
Modifier and Type | Method and 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 result
|
Result |
ClusterSearcher.search(Query query,
Execution execution) |
protected Result |
ClusterSearcher.search(Query query,
Execution execution,
ErrorMessage message)
This is called (instead of search(quer,execution,connextion) 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.
|
Modifier and Type | Method and Description |
---|---|
private void |
ClusterSearcher.doFill(T connection,
Result result,
String summaryClass,
Execution execution) |
void |
ClusterSearcher.fill(Result result,
String summaryClass,
Execution execution) |
protected abstract void |
ClusterSearcher.fill(Result result,
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.
|
Modifier and Type | Field and Description |
---|---|
private Result |
Dispatcher.GetDocsumsResponseReceiver.result |
Modifier and Type | Method and Description |
---|---|
void |
Dispatcher.fill(Result result,
String summaryClass,
com.yahoo.compress.CompressionType compression)
Fills the given summary class by sending RPC requests to the right search nodes
|
private static com.yahoo.collections.ListMap<Integer,FastHit> |
Dispatcher.hitsByNode(Result result)
Return a map of hits by their search node (partition) id
|
private void |
Dispatcher.sendGetDocsumsRequest(int nodeId,
List<FastHit> hits,
String summaryClass,
com.yahoo.compress.CompressionType compression,
Result result,
Dispatcher.GetDocsumsResponseReceiver responseReceiver)
Send a getDocsums request to a node.
|
Constructor and Description |
---|
GetDocsumsResponseReceiver(int requestCount,
com.yahoo.compress.Compressor compressor,
Result result) |
Modifier and Type | Field and Description |
---|---|
private Optional<Result> |
FederationResult.TargetResult.availableResult
Single threaded access to result already returned from futureResult, if any.
|
(package private) Map<com.yahoo.component.chain.Chain<Searcher>,Map<Query,Result>> |
FederationSearcher.UniqueExecutionsToResults.resultsToFill
Implemented as a nested identity hashmap
|
Modifier and Type | Method and Description |
---|---|
private Result |
ForwardingSearcher.badResult(Query query) |
Result |
FederationSearcher.UniqueExecutionsToResults.get(com.yahoo.component.chain.Chain<Searcher> chain,
Query query)
Returns a result to fill for a query and chain, by creating it if necessary
|
Result |
FederationResult.TargetResult.getOrTimeoutError()
Returns a result without blocking; if the result is not available one with a timeout error is produced
|
private Result |
FederationSearcher.getSearchChainGroup(Hit hit,
Result result,
FederationSearcher.UniqueExecutionsToResults uniqueExecutionsToResults) |
Result |
FederationSearcher.search(Query query,
Execution execution) |
Result |
ForwardingSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
Optional<Result> |
FederationResult.TargetResult.getIfAvailable(long timeout)
Returns the result of this by blocking until timeout if necessary.
|
private Optional<Result> |
FederationSearcher.search(Query query,
Execution execution,
FederationSearcher.Target target) |
Modifier and Type | Method and Description |
---|---|
private void |
FederationSearcher.addResultsToFill(HitGroup hitGroup,
Result result,
String summaryClass,
FederationSearcher.UniqueExecutionsToResults uniqueExecutionsToResults) |
void |
FederationSearcher.fill(Result result,
String summaryClass,
Execution execution) |
void |
ForwardingSearcher.fill(Result result,
String summaryClass,
Execution execution) |
private Result |
FederationSearcher.getSearchChainGroup(Hit hit,
Result result,
FederationSearcher.UniqueExecutionsToResults uniqueExecutionsToResults) |
private void |
FederationSearcher.mergeResult(Query query,
FederationSearcher.Target target,
Result mergedResults,
Result result) |
(package private) abstract void |
FederationSearcher.Target.modifyTargetResult(Result result) |
(package private) void |
FederationSearcher.StandardTarget.modifyTargetResult(Result result) |
void |
FederationSearcher.CustomTarget.modifyTargetResult(Result result) |
private void |
FederationSearcher.propagateErrors(Result source,
Result destination) |
private void |
FederationSearcher.search(Query query,
Execution execution,
Collection<FederationSearcher.Target> targets,
Result mergedResults) |
private void |
FederationSearcher.search(Query query,
Execution execution,
FederationSearcher.Target target,
Result mergedResults) |
Modifier and Type | Method and Description |
---|---|
private Result |
HTTPProviderSearcher.consumeEntity(org.apache.http.HttpEntity entity,
Query query,
Result result,
Hit logHit,
long requestStartTime) |
protected Result |
HTTPProviderSearcher.inspectAndReturnFinalResult(Result result,
Hit requestMeta,
Exception e)
Hook called at the moment the result is returned from this searcher.
|
Result |
HTTPClientSearcher.robustSearch(Query query,
Execution execution,
Connection connection)
Overridden to avoid interfering with errors from nested searchers, which is inappropriate for a client
|
Result |
HTTPClientSearcher.search(Query query,
Execution execution,
Connection connection)
Implements a search towards the connection chosen by the cluster searcher for this query
|
Result |
HTTPProviderSearcher.search(Query query,
Execution execution,
Connection connection) |
Result |
HTTPClientSearcher.search(Query query,
Execution execution,
ErrorMessage error)
Overrides to pass the query on to the next searcher
|
private Result |
HTTPProviderSearcher.statisticsBeforeInspection(Result result,
Hit requestMeta,
Exception e) |
Modifier and Type | Method and Description |
---|---|
private Result |
HTTPProviderSearcher.consumeEntity(org.apache.http.HttpEntity entity,
Query query,
Result result,
Hit logHit,
long requestStartTime) |
void |
HTTPClientSearcher.fill(Result result,
String summaryClass,
Execution execution,
Connection connection)
Do nothing on fill in client searchers
|
void |
ConfiguredHTTPClientSearcher.fill(Result result,
String summaryName,
Execution execution,
Connection connection)
Forwards to the next in chain fill(result,summaryName)
|
void |
ConfiguredHTTPProviderSearcher.fill(Result result,
String summaryName,
Execution execution,
Connection connection)
Override this to provider multi-phase result filling towards a backend.
|
protected Result |
HTTPProviderSearcher.inspectAndReturnFinalResult(Result result,
Hit requestMeta,
Exception e)
Hook called at the moment the result is returned from this searcher.
|
protected boolean |
HTTPClientSearcher.shouldRetry(Query query,
Result result)
Never retry individual queries to clients for now
|
private Result |
HTTPProviderSearcher.statisticsBeforeInspection(Result result,
Hit requestMeta,
Exception e) |
void |
HTTPProviderSearcher.unmarshal(org.apache.http.HttpEntity entity,
Result result)
Unmarshal the result from an http entity.
|
void |
HTTPProviderSearcher.unmarshal(InputStream stream,
long contentLength,
Result result)
Unmarshal the stream by converting it to hits and adding the hits to the given result.
|
Modifier and Type | Method and Description |
---|---|
void |
TargetSelector.modifyTargetResult(FederationTarget<T> target,
Result result)
For modifying the result produced by the target.
|
Modifier and Type | Field and Description |
---|---|
private Result |
ResultBuilder.result |
Modifier and Type | Method and Description |
---|---|
Result |
ResultBuilder.parse(InputSource input,
Query query) |
Result |
ResultBuilder.parse(String identifier,
Query query) |
Modifier and Type | Method and Description |
---|---|
void |
VespaSearcher.unmarshal(InputStream stream,
long contentLength,
Result result) |
Modifier and Type | Method and Description |
---|---|
private static Result |
UniqueGroupingSearcher.dedupe(Query query,
Execution execution,
String dedupField)
Until we can use the grouping pagination features in 5.1, we'll have to support offset
by simply requesting and discarding hit #0 up to hit #offset.
|
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.
|
Modifier and Type | Method and Description |
---|---|
RootGroup |
GroupingRequest.getResultGroup(Result result)
Returns the root result
RootGroup that corresponds to this request. |
Modifier and Type | Method and Description |
---|---|
private Result |
GroupingExecutor.performSearch(Query query,
Execution execution,
Map<Integer,com.yahoo.searchlib.aggregation.Grouping> groupingMap)
Performs the actual search passes to complete all the given
Grouping requests. |
Result |
GroupingExecutor.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
void |
GroupingExecutor.fill(Result result,
String summaryClass,
Execution execution) |
private Map<Integer,com.yahoo.searchlib.aggregation.Grouping> |
GroupingExecutor.mergeGroupingResults(Result result)
Merges the grouping content of the given result object.
|
Modifier and Type | Field and Description |
---|---|
private Result |
HttpSearchResponse.result |
Modifier and Type | Field and Description |
---|---|
private com.yahoo.processing.rendering.Renderer<Result> |
HttpSearchResponse.rendererCopy |
Modifier and Type | Method and Description |
---|---|
Result |
HttpSearchResponse.getResult()
Returns the result wrapped by this
|
private Result |
SearchHandler.search(String request,
Query query,
com.yahoo.component.chain.Chain<Searcher> searchChain,
SearchChainRegistry registry) |
Result |
SearchHandler.searchAndFill(Query query,
com.yahoo.component.chain.Chain<? extends Searcher> searchChain,
SearchChainRegistry registry)
Used from container SDK, for internal use only
|
private Result |
SearchHandler.validateQuery(Query query) |
Modifier and Type | Method and Description |
---|---|
com.yahoo.processing.rendering.Renderer<Result> |
SearchHandler.getRendererCopy(com.yahoo.component.ComponentSpecification spec)
Deprecated.
remove on Vespa 7
|
private com.yahoo.processing.rendering.Renderer<Result> |
SearchHandler.perRenderingCopy(com.yahoo.processing.rendering.Renderer<Result> renderer) |
private com.yahoo.processing.rendering.Renderer<Result> |
SearchHandler.toRendererCopy(com.yahoo.component.ComponentSpecification format) |
Modifier and Type | Method and 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) |
private void |
SearchHandler.ensureQuerySet(Result result,
Query fallbackQuery) |
private static int |
SearchHandler.getErrors(Result result) |
private int |
SearchHandler.getHttpResponseStatus(com.yahoo.container.jdisc.HttpRequest httpRequest,
Result result) |
(package private) static boolean |
SearchResponse.isSuccess(Result r) |
(package private) static void |
SearchResponse.removeEmptySummaryFeatureFields(Result result) |
private void |
SearchHandler.traceExecutionTimes(Query query,
Result result) |
(package private) static void |
SearchResponse.trimHits(Result result) |
static com.google.common.util.concurrent.ListenableFuture<Boolean> |
HttpSearchResponse.waitableRender(Result result,
Query query,
com.yahoo.processing.rendering.Renderer<Result> renderer,
OutputStream stream) |
Modifier and Type | Method and Description |
---|---|
private com.yahoo.processing.rendering.Renderer<Result> |
SearchHandler.perRenderingCopy(com.yahoo.processing.rendering.Renderer<Result> renderer) |
static com.google.common.util.concurrent.ListenableFuture<Boolean> |
HttpSearchResponse.waitableRender(Result result,
Query query,
com.yahoo.processing.rendering.Renderer<Result> renderer,
OutputStream stream) |
Constructor and Description |
---|
HttpSearchResponse(int status,
Result result,
Query query,
com.yahoo.processing.rendering.Renderer renderer) |
Modifier and Type | Method and Description |
---|---|
Result |
DocumentDb.search(Query query,
Execution execution)
Search this document db
|
Modifier and Type | Method and Description |
---|---|
Result |
PageTemplateSearcher.search(Query query,
Execution execution) |
Modifier and Type | Field and Description |
---|---|
private Result |
Resolver.ChoiceResolverVisitor.result |
Modifier and Type | Method and Description |
---|---|
private void |
Organizer.addHitsFromSource(Source source,
SectionHitGroup sectionGroup,
Result result,
List<String> sourceList) |
private void |
Organizer.addSource(Resolution resolution,
Source source,
SectionHitGroup sectionGroup,
Result result,
List<String> sourceList) |
void |
Organizer.organize(Choice templateChoice,
Resolution resolution,
Result result)
Organizes the given result
|
private void |
Organizer.renderElements(Resolution resolution,
Result result,
SectionHitGroup sectionGroup,
List<String> sourceList,
List<PageElement> elements) |
Resolution |
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.
|
private SectionHitGroup |
Organizer.toGroup(Section section,
Resolution resolution,
Result result)
Creates the hit group corresponding to a section, drawing data from the given result
|
Constructor and Description |
---|
ChoiceResolverVisitor(Query query,
Result result,
Resolution resolution) |
Modifier and Type | Method and Description |
---|---|
void |
RandomResolver.resolve(Choice choice,
Query query,
Result result,
Resolution resolution)
Chooses the last alternative of any choice
|
void |
DeterministicResolver.resolve(Choice choice,
Query query,
Result result,
Resolution resolution)
Chooses the last alternative of any choice
|
void |
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
|
void |
DeterministicResolver.resolve(MapChoice choice,
Query query,
Result result,
Resolution resolution)
Chooses a mapping which is always by the literal order given in the source template
|
Modifier and Type | Method and Description |
---|---|
Result |
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 |
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 retrieval |
Modifier and Type | Method and Description |
---|---|
Result |
RangeQueryOptimizer.search(Query query,
Execution execution) |
Result |
BooleanSearcher.search(Query query,
Execution execution) |
Result |
QueryCombinator.search(Query query,
Execution execution) |
Result |
LegacyCombinator.search(Query query,
Execution execution) |
Result |
DefaultPositionSearcher.search(Query query,
Execution execution) |
Result |
WandSearcher.search(Query query,
Execution execution) |
Result |
LowercasingSearcher.search(Query query,
Execution execution) |
Result |
NGramSearcher.search(Query query,
Execution execution) |
Result |
SortingDegrader.search(Query query,
Execution execution) |
private Result |
BooleanSearcher.search(Query query,
Execution execution,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
void |
NGramSearcher.fill(Result result,
String summaryClass,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
private Result |
JsonRenderer.getResult() |
private Result |
DefaultRenderer.getResult()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.yahoo.processing.rendering.Renderer<Result> |
RendererRegistry.getDefaultRenderer()
Returns the default JSON renderer
|
com.yahoo.processing.rendering.Renderer<Result> |
RendererRegistry.getRenderer(com.yahoo.component.ComponentSpecification format)
Returns the requested renderer.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
SectionedRenderer.beginResult(WRITER writer,
Result result)
Called at the start of rendering.
|
private Writer |
Renderer.createWriter(OutputStream stream,
Result result) |
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 |
DefaultRenderer.emptyResult(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
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 |
DefaultRenderer.error(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
String |
Renderer.getCharacterEncoding(Result result) |
private void |
SyncDefaultRenderer.header(com.yahoo.text.XMLWriter writer,
Result result) |
private void |
DefaultRenderer.header(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
Renderer.render(OutputStream stream,
Result response,
com.yahoo.processing.execution.Execution execution,
com.yahoo.processing.Request request)
Renders synchronously and returns when rendering is complete.
|
void |
SyncDefaultRenderer.render(Writer writer,
Result result)
Renders this result
|
protected abstract void |
Renderer.render(Writer writer,
Result result)
Renders the result to the writer.
|
void |
SectionedRenderer.render(Writer writer,
Result result)
Picks apart the result and feeds it to the other methods.
|
private void |
SectionedRenderer.renderResultContent(WRITER writer,
Result result) |
private void |
SyncDefaultRenderer.renderTime(com.yahoo.text.XMLWriter writer,
Result result) |
private void |
DefaultRenderer.renderTime(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private Result |
Templating.result |
Modifier and Type | Field and Description |
---|---|
private com.yahoo.processing.rendering.Renderer<Result> |
Templating.renderer |
Modifier and Type | Method and Description |
---|---|
com.yahoo.processing.rendering.Renderer<Result> |
Templating.getRenderer()
Deprecated.
since 5.1.21, use
Presentation.getRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
Templating.setRenderer(com.yahoo.processing.rendering.Renderer<Result> renderer)
Deprecated.
since 5.1.21, use
Presentation.setRenderer(com.yahoo.component.ComponentSpecification) |
Constructor and Description |
---|
HitIterator(Result result,
List<Hit> hits) |
Templating(Result result) |
Modifier and Type | Method and Description |
---|---|
Result |
FutureResult.get()
Returns a Result containing the hits returned from this source, or an error otherwise.
|
Result |
FutureResult.get(long timeout,
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.
|
Modifier and Type | Method and Description |
---|---|
Optional<Result> |
FutureResult.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 time
|
static List<Result> |
AsyncExecution.waitForAll(Collection<FutureResult> tasks,
long timeoutMs) |
Modifier and Type | Method and Description |
---|---|
void |
Execution.fill(Result result)
Fill hit properties with data using the default summary
class, possibly overridden with the 'summary' request parameter.
|
FutureResult |
AsyncExecution.fill(Result result,
String summaryClass)
The future of this functions returns the original Result
|
void |
Execution.fill(Result result,
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.
|
private void |
Execution.onInvokingFill(Searcher searcher,
Result result,
String summaryClass) |
private void |
Execution.onReturningFill(Searcher searcher,
Result result,
String summaryClass) |
Modifier and Type | Method and Description |
---|---|
private FutureResult |
AsyncExecution.getFutureResult(Callable<Result> callable,
Query query) |
Constructor and Description |
---|
FutureResult(Callable<Result> callable,
Execution execution,
Query query) |
Modifier and Type | Method and Description |
---|---|
Result |
ExampleSearcher.search(Query query,
Execution execution) |
Modifier and Type | Field and Description |
---|---|
private Result |
DocumentSourceSearcher.defaultFilledResult |
Modifier and Type | Field and Description |
---|---|
private Map<Query,Result> |
DocumentSourceSearcher.completelyFilledResults |
private Map<Query,Result> |
DocumentSourceSearcher.unFilledResults |
Modifier and Type | Method and Description |
---|---|
Result |
DocumentSourceSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
boolean |
DocumentSourceSearcher.addResult(Query query,
Result fullResult)
Adds a result which can be searched for and filled.
|
void |
DocumentSourceSearcher.fill(Result result,
String summaryClass,
Execution execution) |
private void |
DocumentSourceSearcher.fillHits(Result filledHits,
Result hitsToFill,
String summaryClass) |
private Hit |
DocumentSourceSearcher.getMatchingFilledHit(com.yahoo.net.URI hitToFillId,
Result filledHits) |
Modifier and Type | Method and Description |
---|---|
Result |
ConnectionControlSearcher.search(Query query,
Execution execution) |
Result |
ValidateMatchPhaseSearcher.search(Query query,
Execution execution) |
Result |
InputCheckingSearcher.search(Query query,
Execution execution) |
Result |
CacheControlSearcher.search(Query query,
Execution execution) |
Result |
RateLimitingSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
private void |
ConnectionControlSearcher.keepAliveProcessing(Query query,
Result result)
If the HTTP connection has been alive for too long, set the header
"Connection: Close" to tell the client to close the connection after this
request.
|
private void |
ConnectionControlSearcher.setCloseIfLifetimeExceeded(Query query,
Result result,
int maxLifetimeSeconds) |
Modifier and Type | Method and Description |
---|---|
Result |
PeakQpsSearcher.search(Query query,
Execution execution) |
Result |
TimingSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
void |
TimingSearcher.fill(Result result,
String summaryClass,
Execution execution) |
private ElapsedTime |
TimeTracker.getElapsedTime(Result r) |
void |
TimeTracker.sampleFillReturn(int searcherIndex,
boolean detailed,
Result annotationReference) |
void |
TimeTracker.sampleSearchReturn(int searcherIndex,
boolean detailed,
Result annotationReference) |
Modifier and Type | Method and Description |
---|---|
Result |
MinimalQueryInserter.search(Query query,
Execution execution) |
Result |
FieldFilter.search(Query query,
Execution execution) |
Result |
FieldFiller.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
void |
FieldFilter.fill(Result result,
String summaryClass,
Execution execution) |
void |
FieldFiller.fill(Result result,
String summaryClass,
Execution execution) |
private void |
FieldFilter.filter(Result result) |
Modifier and Type | Method and Description |
---|---|
Result |
VdsStreamingSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution) |
Result |
MetricsSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
protected void |
VdsStreamingSearcher.doPartialFill(Result result,
String summaryClass) |
Copyright © 2017. All rights reserved.