Uses of Class
com.yahoo.search.Query
Packages that use Query
Package
Description
The main classes of the Vespa Query Result Server.
Cluster monitoring for content clusters queried over fnet.
The query model representing a boolean combination of selection criteria, where elements may be
simple criteria, nested boolean operators, or annotated pieces of natural language text.
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.
The search query model
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 Query in ai.vespa.search.llm
Methods in ai.vespa.search.llm with parameters of type QueryModifier and TypeMethodDescriptionprotected ai.vespa.llm.completion.PromptRAGSearcher.buildPrompt(Query query, Result result) protected ResultLLMSearcher.complete(Query query, ai.vespa.llm.completion.Prompt prompt, Result result, Execution execution) LLMSearcher.getApiKeyHeader(Query query) LLMSearcher.lookupProperty(String property, Query query) LLMSearcher.lookupPropertyBool(String property, Query query, boolean defaultValue) -
Uses of Query in com.yahoo.prelude
Methods in com.yahoo.prelude with parameters of type Query -
Uses of Query in com.yahoo.prelude.cluster
Methods in com.yahoo.prelude.cluster with parameters of type Query -
Uses of Query in com.yahoo.prelude.fastsearch
Methods in com.yahoo.prelude.fastsearch with parameters of type QueryModifier and TypeMethodDescriptionprotected abstract ResultSearches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.protected StringVespaBackend.ensureLegalSummaryClass(Query query, String summaryClass) VespaBackend.getDocumentDatabase(Query query) booleanVespaBackend.summaryNeedsQuery(Query query) Returns whether we need to send the query when fetching summaries.protected voidIndexedBackend.transformQuery(Query query) protected voidVespaBackend.transformQuery(Query query) voidPartialSummaryHandler.validateSummaryClass(String summaryClass, Query query) voidPartialSummaryHandler.wantToFill(Query query) Constructors in com.yahoo.prelude.fastsearch with parameters of type QueryModifierConstructorDescriptionGroupingListHit(List<com.yahoo.searchlib.aggregation.Grouping> groupingList, DocumentDatabase documentDatabase, Query query) -
Uses of Query in com.yahoo.prelude.query
Methods in com.yahoo.prelude.query with parameters of type QueryModifier and TypeMethodDescriptionstatic StringQueryCanonicalizer.canonicalize(Query query) Validates this query and carries out possible operations on this query which simplifies it without changing its semantics. -
Uses of Query in com.yahoo.prelude.querytransform
Methods in com.yahoo.prelude.querytransform with parameters of type QueryModifier and TypeMethodDescriptionstatic voidQueryRewrite.collapseSingleComposites(Query query) Collapses all single-childCompositeItems into their parent item.protected voidNormalizingSearcher.normalize(Query query, IndexFacts.Session indexFacts) static voidQueryRewrite.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 voidQueryRewrite.optimizeByRestrict(Query query) Optimizes the given query tree based on itsModel.getRestrict()parameter, if any.static voidQueryRewrite.rewriteSddocname(Query query) Replaces andSimpleIndexedItemsearching in theHit.SDDOCNAME_FIELDwith an item appropriate for the search node. -
Uses of Query in com.yahoo.prelude.searcher
Methods in com.yahoo.prelude.searcher with parameters of type QueryModifier and TypeMethodDescriptionprotected ResultBlendingSearcher.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. -
Uses of Query in com.yahoo.prelude.semantics
Methods in com.yahoo.prelude.semantics with parameters of type QueryModifier and TypeMethodDescriptionAnalyzes a query over this rule baseprotected voidRuleBase.annotatePhrase(PhraseMatcher.Phrase phrase, Query query, int traceLevel) protected voidRuleBase.matchAutomata(Query query, int traceLevel) -
Uses of Query in com.yahoo.prelude.semantics.engine
Methods in com.yahoo.prelude.semantics.engine that return QueryMethods in com.yahoo.prelude.semantics.engine with parameters of type QueryModifier and TypeMethodDescriptionEvaluates a rule base over a queryConstructors in com.yahoo.prelude.semantics.engine with parameters of type QueryModifierConstructorDescriptionEvaluation(Query query, RuleBase ruleBase) Evaluation(Query query, RuleBase ruleBase, int traceLevel) Creates a new evaluation -
Uses of Query in com.yahoo.prelude.statistics
Methods in com.yahoo.prelude.statistics with parameters of type Query -
Uses of Query in com.yahoo.search
Methods in com.yahoo.search that return QueryModifier and TypeMethodDescriptionQuery.Builder.build()Creates a new query from this builder.Query.clone()Returns a clone of this querystatic QueryQuery.createNewQuery(Query query) Creates a new query from another query, but with time sensitive fields reset.Result.getQuery()Returns the query which produced this resultMethods in com.yahoo.search with parameters of type QueryModifier and TypeMethodDescriptionvoidQuery.attachContext(Query query) Set the context information for another query to be part of this query's context information.static QueryQuery.createNewQuery(Query query) Creates a new query from another query, but with time sensitive fields reset.abstract ResultOverride this to implement your searcher.voidSets a query for this resultConstructors in com.yahoo.search with parameters of type Query -
Uses of Query in com.yahoo.search.cluster
Methods in com.yahoo.search.cluster with parameters of type QueryModifier and TypeMethodDescriptionprotected TClusterSearcher.getFirstConnection(Hasher.NodeList<T> nodes, int code, int trynum, Query query) protected ResultClusterSearcher.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 Resultprotected ResultClusterSearcher.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 ResultPerform the search against the given connection.protected booleanClusterSearcher.shouldRetry(Query query, Result result) Returns whether this query and result should be retried against another connection if possible.protected booleanReturns true if this query has timed out now -
Uses of Query in com.yahoo.search.dispatch
Methods in com.yahoo.search.dispatch with parameters of type QueryModifier and TypeMethodDescriptionprotected abstract Optional<SearchInvoker>InvokerFactory.createNodeSearchInvoker(VespaBackend searcher, Query query, int maxHits, Node node) protected InvokerResultSearchInvoker.errorResult(Query query, ErrorMessage errorMessage) Dispatcher.getSearchInvoker(Query query, VespaBackend searcher) Retrieve the hits for the givenQuery.protected ObjectInterleavedSearchInvoker.sendSearchRequest(Query query, Object unusedContext) Sends search queries to the containedSearchInvokersub-invokers.protected ObjectSearchErrorInvoker.sendSearchRequest(Query query, Object context) protected abstract ObjectSearchInvoker.sendSearchRequest(Query query, Object context) Constructors in com.yahoo.search.dispatch with parameters of type Query -
Uses of Query in com.yahoo.search.dispatch.rpc
Methods in com.yahoo.search.dispatch.rpc with parameters of type QueryModifier and TypeMethodDescriptioncom.yahoo.compress.Compressor.Compressioncom.yahoo.compress.Compressor.Compressionprotected Optional<SearchInvoker>RpcInvokerFactory.createNodeSearchInvoker(VespaBackend searcher, Query query, int maxHits, Node node) static intProtobufSerialization.getTraceLevelForBackend(Query query) protected ObjectRpcSearchInvoker.sendSearchRequest(Query query, Object incomingContext) -
Uses of Query in com.yahoo.search.federation
Methods in com.yahoo.search.federation with parameters of type Query -
Uses of Query in com.yahoo.search.federation.selection
Methods in com.yahoo.search.federation.selection with parameters of type QueryModifier and TypeMethodDescriptionTargetSelector.getTargets(Query query, com.yahoo.processing.execution.chain.ChainRegistry<Searcher> searcherChainRegistry) voidTargetSelector.modifyTargetQuery(FederationTarget<T> target, Query query) For modifying the query before sending it to the target -
Uses of Query in com.yahoo.search.federation.sourceref
Methods in com.yahoo.search.federation.sourceref with parameters of type QueryModifier and TypeMethodDescriptionvoidModifyQueryAndResult.modifyTargetQuery(Query query) voidSearchChainInvocationSpec.modifyTargetQuery(Query query) -
Uses of Query in com.yahoo.search.grouping
Methods in com.yahoo.search.grouping with parameters of type QueryModifier and TypeMethodDescriptionstatic voidGroupingQueryParser.createGroupingRequestIn(Query query, GroupingOperation operation, List<Continuation> continuations) static GroupingRequestGroupingRequest.newInstance(Query query) Creates a new grouping request and adds it to the query.getSelect().getGrouping() listImplements the deprecated "unique" api for deduplication by using grouping.static void -
Uses of Query in com.yahoo.search.grouping.result
Methods in com.yahoo.search.grouping.result with parameters of type Query -
Uses of Query in com.yahoo.search.grouping.vespa
Methods in com.yahoo.search.grouping.vespa with parameters of type QueryModifier and TypeMethodDescriptionstatic List<com.yahoo.searchlib.aggregation.Grouping>GroupingExecutor.getGroupingList(Query query) Returns the list ofGroupingobjects assigned to the given query.static booleanGroupingExecutor.hasGroupingList(Query query) static voidGroupingExecutor.setGroupingList(Query query, List<com.yahoo.searchlib.aggregation.Grouping> list) Sets the list ofGroupingobjects assigned to the given query. -
Uses of Query in com.yahoo.search.handler
Methods in com.yahoo.search.handler that return QueryModifier and TypeMethodDescriptionHttpSearchResponse.getQuery()Returns the query wrapped by thisMethods in com.yahoo.search.handler with parameters of type QueryModifier and TypeMethodDescriptionstatic CompletableFuture<Boolean>HttpSearchResponse.asyncRender(Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer, OutputStream stream) static com.yahoo.container.logging.HitCountsSearchResponse.createHitCounts(Query query, Result result) static com.yahoo.container.handler.TimingSearchResponse.createTiming(Query query, Result result) SearchHandler.searchAndFill(Query query, com.yahoo.component.chain.Chain<? extends Searcher> searchChain) Used from container SDK, for internal use onlyConstructors in com.yahoo.search.handler with parameters of type QueryModifierConstructorDescriptionHttpSearchResponse(int status, Result result, Query query, com.yahoo.processing.rendering.Renderer<Result> renderer) -
Uses of Query in com.yahoo.search.intent.model
Methods in com.yahoo.search.intent.model with parameters of type QueryModifier and TypeMethodDescriptionstatic IntentModelReturns the intent model stored at property key "intentModel" in this query, or null if nonevoidStores this intent model at property key "intentModel" in this query -
Uses of Query in com.yahoo.search.logging
Methods in com.yahoo.search.logging that return QueryMethods in com.yahoo.search.logging with parameters of type Query -
Uses of Query in com.yahoo.search.match
Methods in com.yahoo.search.match with parameters of type Query -
Uses of Query in com.yahoo.search.pagetemplates
Methods in com.yahoo.search.pagetemplates with parameters of type Query -
Uses of Query in com.yahoo.search.pagetemplates.engine
Methods in com.yahoo.search.pagetemplates.engine with parameters of type QueryModifier and TypeMethodDescriptionOverride this to resolve choices.voidResolver.resolve(Choice choice, Query query, Result result, Resolution resolution) Override this to resolve each choice independently.voidResolver.resolve(MapChoice choice, Query query, Result result, Resolution resolution) Override this to resolve each map choice independently. -
Uses of Query in com.yahoo.search.pagetemplates.engine.resolvers
Methods in com.yahoo.search.pagetemplates.engine.resolvers with parameters of type QueryModifier and TypeMethodDescriptionvoidDeterministicResolver.resolve(Choice choice, Query query, Result result, Resolution resolution) Chooses the last alternative of any choicevoidDeterministicResolver.resolve(MapChoice choice, Query query, Result result, Resolution resolution) Chooses a mapping which is always by the literal order given in the source templatevoidRandomResolver.resolve(Choice choice, Query query, Result result, Resolution resolution) Chooses the last alternative of any choicevoidRandomResolver.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 Query in com.yahoo.search.pagetemplates.result
Methods in com.yahoo.search.pagetemplates.result with parameters of type QueryModifier and TypeMethodDescriptionfinal StringPageTemplatesXmlRenderer.getRequestedEncoding(Query query) Returns the encoding of the query, or the encoding given by the template if none is set -
Uses of Query in com.yahoo.search.query
Methods in com.yahoo.search.query that return QueryModifier and TypeMethodDescriptionModel.getParent()Returns the query owning this, never nullRanking.getParent()Returns the query owning this, never nullProperties.getParentQuery()Returns the query owning this property object.Methods in com.yahoo.search.query with parameters of type QueryModifier and TypeMethodDescriptionstatic Modelstatic RankingvoidAssigns the query owning thisvoidProperties.setParentQuery(Query query) Invoked during deep cloning of the parent query.Constructors in com.yahoo.search.query with parameters of type QueryModifierConstructorDescriptionPresentation(Query parent) Creates an empty select statementCreates a sort spec from a string, for a given query. -
Uses of Query in com.yahoo.search.query.context
Methods in com.yahoo.search.query.context with parameters of type QueryConstructors in com.yahoo.search.query.context with parameters of type Query -
Uses of Query in com.yahoo.search.query.properties
Methods in com.yahoo.search.query.properties that return QueryMethods in com.yahoo.search.query.properties with parameters of type QueryConstructors in com.yahoo.search.query.properties with parameters of type QueryModifierConstructorDescriptionQueryProperties(Query query, CompiledQueryProfileRegistry profileRegistry, Map<String, com.yahoo.language.process.Embedder> embedders) RankProfileInputProperties(SchemaInfo schemaInfo, Query query, Map<String, com.yahoo.language.process.Embedder> embedders) -
Uses of Query in com.yahoo.search.query.rewrite
Methods in com.yahoo.search.query.rewrite that return QueryModifier and TypeMethodDescriptionstatic QueryRewriterFeatures.addExpansions(Query query, Set<PhraseMatcher.Phrase> matches, String expandIndex, int maxNumRewrites, boolean removeOriginal, boolean addUnitToRewrites) Add Expansions to the matching phrasesstatic QueryRewriterFeatures.addRewritesAsEquiv(Query query, String matchingStr, String rewrites, boolean addUnitToRewrites, int maxNumRewrites) Add query expansion to the query treestatic QueryRewriterFeatures.addUnitToOriginalQuery(Query query, String boostingQuery, boolean keepOriginalQuery) Add proximity boosting to original query by modifying the query tree directlyMethods in com.yahoo.search.query.rewrite with parameters of type QueryModifier and TypeMethodDescriptionstatic QueryRewriterFeatures.addExpansions(Query query, Set<PhraseMatcher.Phrase> matches, String expandIndex, int maxNumRewrites, boolean removeOriginal, boolean addUnitToRewrites) Add Expansions to the matching phrasesstatic QueryRewriterFeatures.addRewritesAsEquiv(Query query, String matchingStr, String rewrites, boolean addUnitToRewrites, int maxNumRewrites) Add query expansion to the query treestatic QueryRewriterFeatures.addUnitToOriginalQuery(Query query, String boostingQuery, boolean keepOriginalQuery) Add proximity boosting to original query by modifying the query tree directlystatic voidPrint error messagestatic 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 dictionarystatic 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 dictionarystatic 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 dictionarystatic StringRewriterUtils.getNormalizedOriginalQuery(Query query) Retrieve normalized original query from query objectprotected StringQueryRewriteSearcher.getQPConfig(Query query, String paramName) Get config parameter value set in query profilestatic StringRewriterUtils.getQPConfig(Query query, String rewriterName, String paramName) Get config parameter value set in query profileprotected StringQueryRewriteSearcher.getRewriteFromFSA(Query query, String dictName, String key) Retrieve rewrite from FSA given the original querystatic StringRewriterUtils.getRewriteFromFSA(Query query, HashMap<String, Object> rewriterDicts, String dictName, String key) Retrieve rewrite from FSA given the original queryRewriterUtils.getRewriteMeta(Query query) Retrieve metadata passed by previous rewriter from query properties Initialize values if this is the first rewriterstatic StringRewriterUtils.getRewriterChain(Query query) Get rewriter chain valuestatic StringRewriterUtils.getSpellCorrected(Query query, boolean qss_rw, boolean qss_sugg) Retrieve spell corrected query with highest score from QLASstatic StringRewriterUtils.getUserParam(Query query, String paramName) Get user param valuestatic com.yahoo.fsa.FSALoad FSA from filestatic com.yahoo.fsa.FSALoad FSA from filestatic voidLog messagePerform the main rewrite logicPerform 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 existstatic voidRewriterUtils.setRewriteMeta(Query query, HashMap<String, Object> metadata) Pass metadata to the next rewriter through query properties -
Uses of Query in com.yahoo.search.query.rewrite.rewriters
Methods in com.yahoo.search.query.rewrite.rewriters with parameters of type QueryModifier and TypeMethodDescriptionMain logic of rewriter
- Retrieve rewrites from FSA dict
- rewrite query using features that are enabled by userMain logic of rewriter
- Retrieve spell corrected query from QLAS
- Add spell corrected query as equivMain logic of rewriter
- Retrieve rewrites from FSA dict
- rewrite query using features that are enabled by user -
Uses of Query in com.yahoo.search.querytransform
Methods in com.yahoo.search.querytransform with parameters of type QueryModifier and TypeMethodDescriptionprotected CompositeItemNGramSearcher.createGramRoot(HasIndexItem term, Query query) Creates the root of the query subtree which will contain the grams to match, called byNGramSearcher.splitToGrams(com.yahoo.prelude.query.Item, java.lang.String, int, com.yahoo.search.Query).protected CompositeItemNGramSearcher.createGramRoot(Query query) Creates the root of the query subtree without access to the term being replaced.protected ItemNGramSearcher.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. -
Uses of Query in com.yahoo.search.ranking
Methods in com.yahoo.search.ranking with parameters of type QueryModifier and TypeMethodDescriptionintGlobalPhaseRanker.getRerankCount(Query query, String schema) voidGlobalPhaseRanker.rerankHits(Query query, Result result, String schema) GlobalPhaseRanker.validateNoSorting(Query query, String schema) -
Uses of Query in com.yahoo.search.rendering
Methods in com.yahoo.search.rendering with parameters of type QueryModifier and TypeMethodDescriptionfinal StringRenderer.getRequestedEncoding(Query query) Returns the encoding of the query, or the encoding given by the template if none is setfinal StringXmlRenderer.getRequestedEncoding(Query query) Returns the encoding of the query, or the encoding given by the template if none is setvoidSyncDefaultRenderer.queryContext(com.yahoo.text.XMLWriter writer, QueryContext queryContext, Query owner) voidXmlRenderer.queryContext(com.yahoo.text.XMLWriter writer, QueryContext queryContext, Query owner) -
Uses of Query in com.yahoo.search.result
Methods in com.yahoo.search.result that return QueryModifier and TypeMethodDescriptionHit.getQuery()Returns the query which produced this hit, or null if not knownMethods in com.yahoo.search.result with parameters of type QueryModifier and TypeMethodDescriptionfinal voidSets the query which produced this.Constructors in com.yahoo.search.result with parameters of type QueryModifierConstructorDescriptionCreates a minimal valid hit.Creates a hit.Creates a minimal valid hit having relevance 1Creates a minimal valid hit.Creates a hit. -
Uses of Query in com.yahoo.search.schema
Methods in com.yahoo.search.schema with parameters of type Query -
Uses of Query in com.yahoo.search.searchchain
Methods in com.yahoo.search.searchchain that return QueryModifier and TypeMethodDescriptionFutureResult.getQuery()Returns the query used in this execution, never nullMethods in com.yahoo.search.searchchain with parameters of type QueryModifier and TypeMethodDescriptionDoes an async search.Calls search on the next searcher in this chain.AsyncExecution.searchAndFill(Query query) Constructors in com.yahoo.search.searchchain with parameters of type QueryModifierConstructorDescriptionFutureResult(Callable<Result> callable, Execution execution, Query query) -
Uses of Query in com.yahoo.search.searchchain.testutil
Methods in com.yahoo.search.searchchain.testutil with parameters of type Query -
Uses of Query in com.yahoo.search.searchers
Methods in com.yahoo.search.searchers with parameters of type QueryModifier and TypeMethodDescription -
Uses of Query in com.yahoo.search.significance
Methods in com.yahoo.search.significance with parameters of type Query -
Uses of Query in com.yahoo.search.yql
Methods in com.yahoo.search.yql with parameters of type QueryModifier and TypeMethodDescriptionstatic Stringstatic StringvoidYqlParser.setUserQuery(Query userQuery) -
Uses of Query in com.yahoo.vespa.streamingvisitors
Methods in com.yahoo.vespa.streamingvisitors with parameters of type Query