Package | Description |
---|---|
com.yahoo.fs4 | |
com.yahoo.fs4.mplex | |
com.yahoo.prelude |
The main classes of the Vespa Query Result Server.
|
com.yahoo.prelude.cluster |
Cluster monitoring for content clusters queried over fnet.
|
com.yahoo.prelude.fastsearch | |
com.yahoo.prelude.query |
The query model representing a boolean combination of selection criterions, where elements may be
simple criterions, nested boolean operators, or annotated pieces of natural language text.
|
com.yahoo.prelude.querytransform | |
com.yahoo.prelude.searcher | |
com.yahoo.prelude.semantics | |
com.yahoo.prelude.semantics.engine | |
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.intent.model | |
com.yahoo.search.match | |
com.yahoo.search.pagetemplates | |
com.yahoo.search.pagetemplates.engine | |
com.yahoo.search.pagetemplates.engine.resolvers | |
com.yahoo.search.pagetemplates.result | |
com.yahoo.search.query |
The search query model
|
com.yahoo.search.query.context | |
com.yahoo.search.query.properties | |
com.yahoo.search.query.rewrite | |
com.yahoo.search.query.rewrite.rewriters | |
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 | Method and Description |
---|---|
Query |
QueryPacket.getQuery()
Returns the query from which this packet is populated
|
Modifier and Type | Method and Description |
---|---|
static QueryPacket |
QueryPacket.create(Query query)
Creates and returns a query packet
|
Modifier and Type | Method and Description |
---|---|
Query |
FS4Channel.getQuery()
Get the query currently associated with this channel
|
Modifier and Type | Method and Description |
---|---|
void |
FS4Channel.setQuery(Query query)
Set the query currently associated with this channel
|
Modifier and Type | Method and Description |
---|---|
IndexFacts.Session |
IndexFacts.newSession(Query query) |
Modifier and Type | Method and Description |
---|---|
Result |
ClusterSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
protected QueryPacket |
VespaBackEndSearcher.createQueryPacket(Query query) |
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) |
protected DocsumDefinitionSet |
VespaBackEndSearcher.getDocsumDefinitionSet(Query query) |
protected DocumentDatabase |
VespaBackEndSearcher.getDocumentDatabase(Query query) |
FillInvoker |
FS4InvokerFactory.getFillInvoker(Query query,
Node node) |
Optional<SearchInvoker> |
FS4InvokerFactory.getSearchInvoker(Query query,
int groupId,
List<Node> nodes,
boolean acceptIncompleteCoverage)
Create a
SearchInvoker for a list of content nodes. |
SearchInvoker |
FS4InvokerFactory.getSearchInvoker(Query query,
Node node) |
PacketWrapper |
CacheControl.lookup(CacheKey key,
Query query) |
Result |
VespaBackEndSearcher.search(Query query,
Execution execution) |
protected void |
FS4SearchInvoker.sendSearchRequest(Query query,
QueryPacket queryPacket) |
boolean |
VespaBackEndSearcher.summaryNeedsQuery(Query query)
Returns whether we need to send the query when fetching summaries.
|
protected void |
VespaBackEndSearcher.transformQuery(Query query) |
protected void |
FastSearcher.transformQuery(Query query) |
boolean |
CacheControl.useCache(Query query) |
Constructor and Description |
---|
FS4FillInvoker(VespaBackEndSearcher searcher,
Query query,
Backend backend) |
FS4FillInvoker(VespaBackEndSearcher searcher,
Query query,
FS4ResourcePool fs4ResourcePool,
String hostname,
int port,
int distributionKey) |
FS4SearchInvoker(VespaBackEndSearcher searcher,
Query query,
Backend backend) |
FS4SearchInvoker(VespaBackEndSearcher searcher,
Query query,
FS4Channel channel,
Node node) |
Modifier and Type | Method and Description |
---|---|
static String |
QueryCanonicalizer.canonicalize(Query query)
Validates this query and carries out possible operations on this query
which simplifies it without changing its semantics.
|
Modifier and Type | Method and Description |
---|---|
static void |
QueryRewrite.collapseSingleComposites(Query query)
Collapses all single-child
CompositeItem s into their parent item. |
protected void |
NormalizingSearcher.normalize(Query query,
IndexFacts.Session indexFacts) |
static void |
QueryRewrite.optimizeAndNot(Query query)
Optimize multiple NotItems under and or by collapsing them in to one and leaving
the positive ones behind in its place and moving itself with the original and as its positive item
and the union of all the negative items of all the original NotItems as its negative items.
|
static void |
QueryRewrite.optimizeByRestrict(Query query)
Optimizes the given query tree based on its
Model.getRestrict() parameter, if any. |
static void |
QueryRewrite.rewriteSddocname(Query query)
Replaces and
SimpleIndexedItem searching in the Hit.SDDOCNAME_FIELD with an item
appropriate for the search node. |
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)
Deprecated.
|
Result |
NonPhrasingSearcher.search(Query query,
Execution execution) |
Result |
CollapsePhraseSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
boolean |
DocumentSourceSearcher.addResultSet(Query query,
Result fullResult)
Deprecated.
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.
|
Result |
PosSearcher.search(Query query,
Execution execution) |
Result |
FillSearcher.search(Query query,
Execution execution) |
Result |
QuerySnapshotSearcher.search(Query query,
Execution execution)
Deprecated.
|
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)
Deprecated.
|
Result |
DocumentSourceSearcher.search(Query query,
Execution execution)
Deprecated.
|
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) |
Modifier and Type | Method and Description |
---|---|
String |
RuleBase.analyze(Query query,
int traceLevel)
Analyzes a query over this rule base
|
protected void |
RuleBase.annotatePhrase(PhraseMatcher.Phrase phrase,
Query query,
int traceLevel) |
protected void |
RuleBase.matchAutomata(Query query,
int traceLevel) |
Result |
SemanticSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
Query |
Evaluation.getQuery() |
Modifier and Type | Method and Description |
---|---|
String |
RuleEngine.evaluate(Query query,
int traceLevel)
Evaluates a rule base over a query
|
Constructor and Description |
---|
Evaluation(Query query) |
Evaluation(Query query,
int traceLevel)
Creates a new evaluation
|
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 |
---|---|
String |
GenericTemplateSet.getRequestedEncoding(Query query)
Deprecated.
Returns the encoding of the query, or the encoding given by the template if none is set
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.clone()
Returns a clone of this query
|
static Query |
Query.createNewQuery(Query query)
Creates a new query from another query, but with time sensitive fields reset.
|
Query |
Result.getQuery()
Returns the query which produced this result
|
Modifier and Type | Method and Description |
---|---|
void |
Query.attachContext(Query query)
Set the context information for another query to be part of this query's
context information.
|
static Query |
Query.createNewQuery(Query query)
Creates a new query from another query, but with time sensitive fields reset.
|
abstract Result |
Searcher.search(Query query,
Execution execution)
Override this to implement your searcher.
|
void |
Result.setQuery(Query query)
Sets a query for this result
|
Constructor and Description |
---|
Query(Query query) |
Result(Query query)
Creates a new Result where the top level hit group has id "toplevel"
|
Result(Query query,
ErrorMessage errorMessage)
Create a result containing an error
|
Result(Query query,
HitGroup hits)
Create an empty result.
|
Modifier and Type | Method and Description |
---|---|
protected T |
ClusterSearcher.getFirstConnection(Hasher.NodeList<T> nodes,
int code,
int trynum,
Query query) |
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.
|
protected boolean |
ClusterSearcher.shouldRetry(Query query,
Result result)
Returns whether this query and result should be retried against another
connection if possible.
|
protected boolean |
ClusterSearcher.timedOut(Query query)
Returns true if this query has timed out now
|
Modifier and Type | Method and Description |
---|---|
Optional<FillInvoker> |
RpcResourcePool.getFillInvoker(Query query,
VespaBackEndSearcher searcher,
DocumentDatabase documentDb) |
Optional<SearchInvoker> |
Dispatcher.getSearchInvoker(Query query,
FS4InvokerFactory fs4InvokerFactory) |
List<Result> |
SearchInvoker.search(Query query,
QueryPacket queryPacket,
CacheKey cacheKey)
Retrieve the hits for the given
Query . |
protected void |
InterleavedSearchInvoker.sendSearchRequest(Query query,
QueryPacket queryPacket)
Sends search queries to the contained
SearchInvoker sub-invokers. |
protected void |
SearchErrorInvoker.sendSearchRequest(Query query,
QueryPacket queryPacket) |
protected abstract void |
SearchInvoker.sendSearchRequest(Query query,
QueryPacket queryPacket) |
Optional<Group> |
LoadBalancer.takeGroupForQuery(Query query,
Set<Integer> rejectedGroups)
Select and allocate the search cluster group which is to be used for the provided query.
|
Modifier and Type | Method and Description |
---|---|
static Properties |
FederationSearcher.getSourceProperties(Query query)
Returns the set of properties set for the source or provider given in the query (if any).
|
Result |
FederationSearcher.search(Query query,
Execution execution) |
Result |
ForwardingSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
Query |
HTTPClientSearcher.handleResponse(org.apache.http.HttpEntity entity,
Query query)
Deprecated.
Unmarshals the response and adds the resulting data to the given query.
|
Query |
HTTPClientSearcher.handleResponse(InputStream inputStream,
long contentLength,
Query query)
Deprecated.
Convenience hook for unmarshalling the response and adding the information to the query.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HTTPProviderSearcher.addNonExcludedSourceProperties(Query query,
Map<String,String> queryMap)
Deprecated.
|
protected ErrorMessage |
HTTPSearcher.createMalformedUrlError(Query query,
Exception e)
Deprecated.
Utility method for creating error messages when a url is incorrect
|
abstract Map<String,String> |
HTTPClientSearcher.getCacheKey(Query q)
Deprecated.
numHits and offset should not be part of the cache key as cache supports
partial read/write that is only one cache entry is maintained per query
irrespective of the offset and numhits.
|
abstract Map<String,String> |
HTTPProviderSearcher.getCacheKey(Query q)
Deprecated.
the cache key is ignored as there is no built-in caching support
|
protected org.apache.http.HttpEntity |
HTTPSearcher.getEntity(URI uri,
Hit requestMeta,
Query query)
Deprecated.
Gets the HTTP entity that holds the response contents.
|
protected org.apache.http.HttpEntity |
HTTPSearcher.getEntity(URI uri,
Query query)
Deprecated.
Same a
getEntity(uri, null) . |
Map<String,String> |
HTTPClientSearcher.getQueryMap(Query query)
Deprecated.
Adds all key-values starting by "service." + getClientName() in query.properties().
|
Map<String,String> |
HTTPProviderSearcher.getQueryMap(Query query)
Deprecated.
Returns the key-value pairs that should be added as properties to the request url sent to the service.
|
Map<String,String> |
HTTPSearcher.getQueryMap(Query query)
Deprecated.
Returns the key-value pairs that should be added as properties to the request url sent to the service.
|
protected org.apache.http.HttpEntity |
HTTPSearcher.getRequestEntity(Query query,
Hit requestMeta)
Deprecated.
Returns the HTTP request entity to use when making the request for this query.
|
protected Map<String,String> |
HTTPSearcher.getRequestHeaders(Query query,
Hit requestMeta)
Deprecated.
Returns the set of headers to be passed in the http request to provider backend.
|
protected org.apache.http.HttpResponse |
HTTPSearcher.getResponse(URI uri,
Hit requestMeta,
Query query)
Deprecated.
Executes an HTTP request and gets the response.
|
protected org.apache.http.HttpResponse |
HTTPSearcher.getResponse(URI uri,
Query query)
Deprecated.
Same as
getResponse(uri, null) . |
protected URI |
HTTPSearcher.getURI(Query query,
Connection connection)
Deprecated.
Same a
getURI(query, offset, hits, null) . |
protected URI |
HTTPSearcher.getURI(Query query,
Hit requestMeta,
Connection connection)
Deprecated.
Creates the URI for a query.
|
Query |
HTTPClientSearcher.handleResponse(org.apache.http.HttpEntity entity,
Query query)
Deprecated.
Unmarshals the response and adds the resulting data to the given query.
|
Query |
HTTPClientSearcher.handleResponse(InputStream inputStream,
long contentLength,
Query query)
Deprecated.
Convenience hook for unmarshalling the response and adding the information to the query.
|
Result |
HTTPClientSearcher.robustSearch(Query query,
Execution execution,
Connection connection)
Deprecated.
Overridden to avoid interfering with errors from nested searchers, which is inappropriate for a client
|
Result |
HTTPClientSearcher.search(Query query,
Execution execution,
Connection connection)
Deprecated.
Implements a search towards the connection chosen by the cluster searcher for this query
|
Result |
HTTPProviderSearcher.search(Query query,
Execution execution,
Connection connection)
Deprecated.
|
Result |
HTTPClientSearcher.search(Query query,
Execution execution,
ErrorMessage error)
Deprecated.
Overrides to pass the query on to the next searcher
|
protected boolean |
HTTPClientSearcher.shouldRetry(Query query,
Result result)
Deprecated.
Never retry individual queries to clients for now
|
Modifier and Type | Method and Description |
---|---|
Collection<FederationTarget<T>> |
TargetSelector.getTargets(Query query,
com.yahoo.processing.execution.chain.ChainRegistry<Searcher> searcherChainRegistry) |
void |
TargetSelector.modifyTargetQuery(FederationTarget<T> target,
Query query)
For modifying the query before sending it to a the target
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
VespaSearcher.getCacheKey(Query q)
Deprecated.
|
Map<String,String> |
VespaSearcher.getQueryMap(Query query)
Deprecated.
|
String |
VespaSearcher.marshalQuery(Query query)
Deprecated.
Serialize the query parameter for outgoing queries.
|
Result |
ResultBuilder.parse(InputSource input,
Query query)
Deprecated.
|
Result |
ResultBuilder.parse(String identifier,
Query query)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static List<GroupingRequest> |
GroupingRequest.getRequests(Query query)
Deprecated.
use query.getSelect().getGrouping()
|
static GroupingRequest |
GroupingRequest.newInstance(Query query)
Creates a new grouping request and adds it to the query.getSelect().getGrouping() list
|
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 |
---|---|
static List<com.yahoo.searchlib.aggregation.Grouping> |
GroupingExecutor.getGroupingList(Query query)
Returns the list of
Grouping objects assigned to the given query. |
static boolean |
GroupingExecutor.hasGroupingList(Query query) |
Result |
GroupingExecutor.search(Query query,
Execution execution) |
static void |
GroupingExecutor.setGroupingList(Query query,
List<com.yahoo.searchlib.aggregation.Grouping> lst)
Sets the list of
Grouping objects assigned to the given query. |
Modifier and Type | Method and Description |
---|---|
Query |
HttpSearchResponse.getQuery()
Returns the query wrapped by this
|
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) |
Result |
SearchHandler.searchAndFill(Query query,
com.yahoo.component.chain.Chain<? extends Searcher> searchChain,
SearchChainRegistry registry)
Used from container SDK, for internal use only
|
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 |
---|---|
static IntentModel |
IntentModel.getFrom(Query query)
Returns the intent model stored at property key "intentModel" in this query, or null if none
|
void |
IntentModel.setTo(Query query)
Stores this intent model at property key "intentModel" in this query
|
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 | Method and Description |
---|---|
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.
|
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 |
---|---|
String |
PageTemplatesXmlRenderer.getRequestedEncoding(Query query)
Returns the encoding of the query, or the encoding given by the template if none is set
|
Modifier and Type | Method and Description |
---|---|
Query |
Model.getParent()
returns the query owning this, never null
|
Query |
Properties.getParentQuery()
The query owning this property object.
|
Modifier and Type | Method and Description |
---|---|
Select |
Select.cloneFor(Query parent) |
Model |
Model.cloneFor(Query q) |
static Ranking |
Ranking.getFrom(Query q) |
static Model |
Model.getFrom(Query q) |
void |
Model.setParent(Query parent)
Assigns the query owning this
|
void |
Properties.setParentQuery(Query query)
Invoked during deep cloning of the parent query.
|
Constructor and Description |
---|
Model(Query query) |
Presentation(Query parent) |
Ranking(Query parent) |
Select(Query query)
Creates an empty select statement
|
Select(String where,
String grouping,
Query query) |
Modifier and Type | Method and Description |
---|---|
QueryContext |
QueryContext.cloneFor(Query cloneOwner) |
Constructor and Description |
---|
QueryContext(int ignored,
Query owner) |
Modifier and Type | Method and Description |
---|---|
Query |
QueryProperties.getParentQuery() |
Modifier and Type | Method and Description |
---|---|
void |
QueryProperties.setParentQuery(Query query) |
Constructor and Description |
---|
QueryProperties(Query query,
CompiledQueryProfileRegistry profileRegistry) |
Modifier and Type | Method and Description |
---|---|
static Query |
RewriterFeatures.addExpansions(Query query,
Set<PhraseMatcher.Phrase> matches,
String expandIndex,
int maxNumRewrites,
boolean removeOriginal,
boolean addUnitToRewrites)
Add Expansions to the matching phrases
|
static Query |
RewriterFeatures.addRewritesAsEquiv(Query query,
String matchingStr,
String rewrites,
boolean addUnitToRewrites,
int maxNumRewrites)
Add query expansion to the query tree
|
static Query |
RewriterFeatures.addUnitToOriginalQuery(Query query,
String boostingQuery,
boolean keepOriginalQuery)
Add proximity boosting to original query by modifying
the query tree directly
|
Modifier and Type | Method and Description |
---|---|
static Query |
RewriterFeatures.addExpansions(Query query,
Set<PhraseMatcher.Phrase> matches,
String expandIndex,
int maxNumRewrites,
boolean removeOriginal,
boolean addUnitToRewrites)
Add Expansions to the matching phrases
|
static Query |
RewriterFeatures.addRewritesAsEquiv(Query query,
String matchingStr,
String rewrites,
boolean addUnitToRewrites,
int maxNumRewrites)
Add query expansion to the query tree
|
static Query |
RewriterFeatures.addUnitToOriginalQuery(Query query,
String boostingQuery,
boolean keepOriginalQuery)
Add proximity boosting to original query by modifying
the query tree directly
|
static void |
RewriterUtils.error(Logger logger,
Query query,
String msg)
Print error message
|
static Set<PhraseMatcher.Phrase> |
RewriterFeatures.getNonOverlappingFullPhraseMatches(PhraseMatcher phraseMatcher,
Query query)
Retrieve the longest, from left to right non overlapping full
phrase substrings in query based on FSA dictionary
|
static List<PhraseMatcher.Phrase> |
RewriterFeatures.getNonOverlappingMatchesInAndItem(List<PhraseMatcher.Phrase> allMatches,
Query query)
Retrieve the longest, from left to right non overlapping substrings in
AndItem based on FSA dictionary
|
static Set<PhraseMatcher.Phrase> |
RewriterFeatures.getNonOverlappingPartialPhraseMatches(PhraseMatcher phraseMatcher,
Query query)
Retrieve the longest, from left to right non overlapping partial
phrase substrings in query based on FSA dictionary
|
static String |
RewriterUtils.getNormalizedOriginalQuery(Query query)
Retrieve normalized original query from query object
|
protected String |
QueryRewriteSearcher.getQPConfig(Query query,
String paramName)
Get config parameter value set in query profile
|
static String |
RewriterUtils.getQPConfig(Query query,
String rewriterName,
String paramName)
Get config parameter value set in query profile
|
static String |
RewriterUtils.getRewriteFromFSA(Query query,
HashMap<String,Object> rewriterDicts,
String dictName,
String key)
Retrieve rewrite from FSA given the original query
|
protected String |
QueryRewriteSearcher.getRewriteFromFSA(Query query,
String dictName,
String key)
Retrieve rewrite from FSA given the original query
|
static HashMap<String,Object> |
RewriterUtils.getRewriteMeta(Query query)
Retrieve metadata passed by previous rewriter
from query properties
Initialize values if this is the first rewriter
|
static String |
RewriterUtils.getRewriterChain(Query query)
Get rewriter chain value
|
static String |
RewriterUtils.getSpellCorrected(Query query,
boolean qss_rw,
boolean qss_sugg)
Retrieve spell corrected query with highest score from QLAS
|
static String |
RewriterUtils.getUserParam(Query query,
String paramName)
Get user param value
|
static com.yahoo.fsa.FSA |
RewriterUtils.loadFSA(File file,
Query query)
Load FSA from file
|
static com.yahoo.fsa.FSA |
RewriterUtils.loadFSA(String filename,
Query query)
Load FSA from file
|
static void |
RewriterUtils.log(Logger logger,
Query query,
String msg)
Log message
|
protected abstract HashMap<String,Object> |
QueryRewriteSearcher.rewrite(Query query,
String dictKey)
Perform the main rewrite logic
|
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 |
static void |
RewriterUtils.setRewriteMeta(Query query,
HashMap<String,Object> metadata)
Pass metadata to the next rewriter through query properties
|
Modifier and Type | Method and Description |
---|---|
HashMap<String,Object> |
GenericExpansionRewriter.rewrite(Query query,
String dictKey)
Main logic of rewriter
- Retrieve rewrites from FSA dict - rewrite query using features that are enabled by user |
HashMap<String,Object> |
NameRewriter.rewrite(Query query,
String dictKey)
Main logic of rewriter
- Retrieve rewrites from FSA dict - rewrite query using features that are enabled by user |
HashMap<String,Object> |
MisspellRewriter.rewrite(Query query,
String dictKey)
Main logic of rewriter
- Retrieve spell corrected query from QLAS - Add spell corrected query as equiv |
Modifier and Type | Method and Description |
---|---|
static void |
QueryTreeUtil.andQueryItemWithRoot(Query query,
Item item) |
protected CompositeItem |
NGramSearcher.createGramRoot(Query query)
Creates the root of the query subtree which will contain the grams to match,
called by
NGramSearcher.splitToGrams(com.yahoo.prelude.query.Item, java.lang.String, int, com.yahoo.search.Query) . |
Result |
RangeQueryOptimizer.search(Query query,
Execution execution) |
Result |
BooleanSearcher.search(Query query,
Execution execution) |
Result |
QueryCombinator.search(Query query,
Execution execution)
Deprecated.
|
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) |
protected Item |
NGramSearcher.splitToGrams(Item term,
String text,
int gramSize,
Query query)
Splits the given item into n-grams and adds them as a CompositeItem containing WordItems searching the
index of the input term.
|
Modifier and Type | Method and Description |
---|---|
String |
DefaultRenderer.getRequestedEncoding(Query query)
Deprecated.
Returns the encoding of the query, or the encoding given by the template if none is set
|
String |
Renderer.getRequestedEncoding(Query query)
Returns the encoding of the query, or the encoding given by the template if none is set
|
void |
SyncDefaultRenderer.queryContext(com.yahoo.text.XMLWriter writer,
QueryContext queryContext,
Query owner) |
void |
DefaultRenderer.queryContext(com.yahoo.text.XMLWriter writer,
QueryContext queryContext,
Query owner)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Query |
Hit.getQuery()
Returns the query which produced this hit, or null if not known
|
Modifier and Type | Method and Description |
---|---|
void |
Hit.setQuery(Query query)
Sets the query which produced this.
|
Constructor and Description |
---|
Hit(String id,
double relevance,
Query query)
Creates a minimal valid hit.
|
Hit(String id,
double relevance,
String source,
Query query)
Creates a hit.
|
Hit(String id,
Query query)
Creates a minimal valid hit having relevance 1
|
Hit(String id,
Relevance relevance,
Query query)
Creates a minimal valid hit.
|
Hit(String id,
Relevance relevance,
String source,
Query query)
Creates a hit.
|
Modifier and Type | Method and Description |
---|---|
Query |
FutureResult.getQuery()
Returns the query used in this execution, never null
|
Modifier and Type | Method and Description |
---|---|
FutureResult |
AsyncExecution.search(Query query)
Does an async search, note that the query argument cannot simultaneously
be used to execute any other searches, a clone() must be made of the
query for each async execution if the same query is to be used in more
than one.
|
Result |
Execution.search(Query query)
Calls search on the next searcher in this chain.
|
FutureResult |
AsyncExecution.searchAndFill(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 | Method and Description |
---|---|
boolean |
DocumentSourceSearcher.addResult(Query query,
Result fullResult)
Adds a result which can be searched for and filled.
|
Result |
DocumentSourceSearcher.search(Query query,
Execution execution) |
Modifier and Type | Method and Description |
---|---|
Result |
ConnectionControlSearcher.search(Query query,
Execution execution) |
Result |
ValidateMatchPhaseSearcher.search(Query query,
Execution execution) |
Result |
ContainerLatencySearcher.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 |
---|---|
Result |
PeakQpsSearcher.search(Query query,
Execution execution) |
Result |
TimingSearcher.search(Query query,
Execution execution) |
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) |
static String |
VespaSerializer.serialize(Query query) |
void |
YqlParser.setUserQuery(Query userQuery) |
Modifier and Type | Method and Description |
---|---|
Result |
VdsStreamingSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution) |
Result |
MetricsSearcher.search(Query query,
Execution execution) |
Copyright © 2018. All rights reserved.