Package org.apache.solr.search
package org.apache.solr.search
APIs and classes for parsing and processing search requests
-
ClassDescriptionNote: This API is experimental and may change in non backward-compatible ways in the futureA
FixedBitSetbased implementation of aDocSet.Create a boolean query from sub queries.Create a boosted query from the input value.Contains the knowledge of how cache config is stored in the solrconfig.xml file, and implements a factory to create caches.Implementations ofCacheRegeneratorare used in autowarming to populate a new cache based on an old cache.CaffeineCache<K,V> A SolrCache backed by the Caffeine caching library [1].Allows a query to be cancelledThrown when a query gets cancelledThe CollapsingQParserPlugin is a PostFilter that performs field collapsing.Models all the information about how group head documents should be selectedParse Solr's variant on the LuceneComplexPhraseQueryParsersyntax.Enforces a CPU-time based timeout on a given SolrQueryRequest, as specified by thecpuAllowedquery parameter.An object that encapsulates the basic information about the current Mark Point of a "Cursor" based request.A simple delegating collector where one can set the delegate after creationQuery parser for dismax queriesCreate a dismax query from the input value.Information for the current document in theDocIterator.Simple Iterator of document Ids which may include score information.DocListrepresents the result of a query: an ordered list of document ids with optional score.An immutable ordered set of Lucene Document Ids.Adapted from DocIdSetBuilder to build DocSetsDocSliceimplements DocList as an array of docids and optional scores.A helper class for random-order value access over docValues (such as in the case of useDocValuesAsStored).Supplies (and coordinates arbitrary-order value retrieval over) docValues iterators for a particular field, encapsulating the logic of iterator creation, reuse/caching, and advancing.A wrapperCollectorthat throwsEarlyTerminatingCollectorException) once a specified maximum number of documents are collected.Thrown byEarlyTerminatingCollectorwhen the maximum to abort the scoring / collection process early, when the specified maximum number of documents were collected.A ValueSource parser configured with a pre-compiled expression that can then be evaluated at request time.A bindings class that uses schema fields to resolve variables.Query parser that generates DisjunctionMaxQueries based on user configuration.Simple container for configuration information used when parsing queriesA subclass of SolrQueryParser that supports aliasing fields for constructing DisjunctionMaxQueries.A simple container for storing alias infoAn advanced multi-field query parser based on the DisMax parser.The ExtendedQuery interface provides extra metadata to a query.A class to hold "phrase slop" and "boost" parameters for pf, pf2, pf3 parametersCreate a field query from the input value, applying text analysis and constructing a phrase query if appropriate.Abstract decorator class for a DocIdSet implementation that provides on-demand filtering/validation mechanism on a given DocIdSet.Does "function query" parsing of function-call like strings, producing aValueSource.Create a function query from the input value.Create a range query over a function.Plugin for parsing and creating LuceneFuzzyQuerys with all customizations available.The GraphTermsQuery builds a disjunction query from a list of terms.Basic Solr Grouping infrastructure.syntax fq={!hash workers=11 worker=4 keys=field1,field2}Deprecated.Parse Solr's variant on the Lucene QueryParser syntax.Wraps aQueryto customize theTwoPhaseIterator.matchCost().ACollectorfor the maximum score value.Parses a query like Lucene query parser, but scoring with max score, not sum
Accepts the "tie" request parameter as with dismax.Enforces a memory-based limit on a given SolrQueryRequest, as specified by thememAllowedquery parameter.The query parser can be used in two modes 1) where text is analysed and generates min hashes as part of normal lucene analysis 2) where text is pre-analysed and hashes are added as string to the index An analyzer can still be defined to support text based query against the text fieldQParserPluginbased onMinHashQParser.Create a nested query, with the ability of that query to redefine its type via local parameters.Cache regenerator that just populates the new cache with the old items.Deprecated.Creates aPayloadScoreQuerywrapping a SpanQuery created from the input value, applying text analysis and constructing SpanTermQuery or SpanNearQuery based on number of terms.Merge multiple numeric point fields (segments) together.The PostFilter interface provides a mechanism to further filter documents after they have already gone through the main query and other filters.Create a prefix query from the input value.Note: This API is experimental and may change in non backward-compatible ways in the futureA query request command to avoid having to change the method signatures if we want to pass additional information to the searcher.Represents the limitations on the query.Collection of static utilities useful for query parsing.The result of a search.A hash key encapsulating a query, a list of filters, and a sortRankQParserPlugincan be used to introduce document-depending scoring factors to ranking.Note: This API is experimental and may change in non backward-compatible ways in the futureCreate a term query from the input value without any text analysis or transformation whatsoever.AWeightused by reranking queries.A class representing the return fieldsCreate a query from the input value that will be parsed by Lucene's SimpleQueryParser.SolrCache<K,V> Primary API for dealing with Solr's internal caches.Enumeration of possible States for cache instances.Common base class of reusable functionality for SolrCachesDecides how many things to autowarm based on the size of another cacheAssembles a QueryBuilder which uses Query objects from Solr'ssearchmodule in addition to Query objects supported by the LuceneCoreParser.A helper class ofSolrIndexSearcherfor stored Document related matters including DocValue substitutions.A SolrInfoBean that provides introspection of the Solr FieldCacheSolrIndexSearcher adds schema awareness and caching functionality overIndexSearcher.INTERNAL: The response object fromSolrIndexSearcher.getProcessedFilter(List).ACollectorManagerimplements which wrap a set ofCollectorManagerasMultiCollectoracts forCollector.Solr's default query parser, a schema-driven superset of the classic lucene query parser.The default implementation of return fields parsing for Solr.Detects whether a query can be run using a standard LuceneIndexSearcherMarker interface indicating that the tagged class assumes access toSolrIndexSearcherfunctionality and cannot be used by a vanilla LuceneIndexSearcherA simple sorted int[] array implementation ofDocSet, good for small sets.SortSpec encapsulates a Lucene Sort and a count of the number of documents to return.Creates a spatial Filter based on the type of spatial point used.Simple class to help with parsing a string.Plugin for lucene Surround query parser, bringing SpanQuery support to Solr.A QParserPlugin that acts like a "switch/case" statement.Simple checked exception for parsing errorsCreate a single term query from the input value equivalent to readableToIndexed().Finds documents whose specified field has any of the specified values.Returns an AnalyticsQuery implementation that performs one Gradient Descent iteration of a result set to train a logistic regression modelEnforces a wall clock based timeout on a given SolrQueryRequest.TopDocsSliceimplements DocList based off providedTopDocs.JoinQueryimplementation using global (top-level) DocValues ordinals to efficiently compare values in the "from" and "to" fields.A factory parsing arguments (fromFunctionQParser) into a real function whose results are emitted from aValueSource.This class provides implementation for two variants for parsing function query vectorSimilarity which is used to calculate the similarity between two vectors.A simple query that wraps another query and implements ExtendedQuery.TheXmlQParserPluginextends theQParserPluginand supports the creation of queries from XML.
PointRangeQueryBuilderinstead