Uses of Package
org.apache.lucene.search
-
Packages that use org.apache.lucene.search Package Description org.apache.lucene.analysis.boost Provides various convenience classes for creating boosts on Tokens.org.apache.lucene.backward_codecs.lucene50 Lucene 5.0 file format.org.apache.lucene.backward_codecs.lucene50.compressing Lucene 5.0 compressing format.org.apache.lucene.backward_codecs.lucene70 Components from the Lucene 7.0 index format.org.apache.lucene.backward_codecs.lucene80 Components from the Lucene 8.0 index format.org.apache.lucene.backward_codecs.lucene84 Lucene 8.4 file format.org.apache.lucene.backward_codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.backward_codecs.lucene91 Lucene 9.1 file format.org.apache.lucene.backward_codecs.lucene92 Lucene 9.2 file format.org.apache.lucene.backward_codecs.lucene94 Lucene 9.4 file format.org.apache.lucene.backward_codecs.lucene95 Lucene 9.5 file format.org.apache.lucene.classification Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).org.apache.lucene.classification.document Uses already seen data (the indexed documents) to classify new documents.org.apache.lucene.classification.utils Utilities for evaluation, data preparation, etc.org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.bitvectors A simple bit-vector format that supports hamming distance and storing vectors in an HNSW graphorg.apache.lucene.codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.codecs.lucene90.compressing Lucene 9.0 compressing format.org.apache.lucene.codecs.lucene95 Lucene 9.5 file format.org.apache.lucene.codecs.lucene99 Lucene 9.9 file format.org.apache.lucene.codecs.memory Term dictionary, DocValues or Postings formats that are read entirely into memory.org.apache.lucene.codecs.perfield Postings format that can delegate to different formats per-field.org.apache.lucene.codecs.simpletext Simpletext Codec: writes human readable postings.org.apache.lucene.codecs.uniformsplit.sharedterms Pluggable term index / block terms dictionary implementations.org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.expressions Expressions.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.misc.index Misc index tools and index support.org.apache.lucene.misc.search Misc search implementations.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.payloads Experimental classes for interacting with payloadsorg.apache.lucene.queries Filters and Queries that add to core Lucene.org.apache.lucene.queries.function Queries that compute score based upon a function.org.apache.lucene.queries.function.docvalues FunctionValues for different data types.org.apache.lucene.queries.function.valuesource A variety of functions to use with FunctionQuery.org.apache.lucene.queries.intervals Intervals queriesorg.apache.lucene.queries.mlt Document similarity query generators.org.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.queries.spans The calculus of spans.org.apache.lucene.queryparser.classic A simple query parser implemented with JavaCC.org.apache.lucene.queryparser.complexPhrase QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"org.apache.lucene.queryparser.ext Extendable QueryParser provides a simple and flexible extension mechanism by overloading query field names.org.apache.lucene.queryparser.flexible.standard Lucene Flexible Query Parser Implementationorg.apache.lucene.queryparser.flexible.standard.builders Standard Lucene Query Node Builders.org.apache.lucene.queryparser.flexible.standard.config Standard Lucene Query Configuration.org.apache.lucene.queryparser.flexible.standard.nodes Standard Lucene Query Nodes.org.apache.lucene.queryparser.simple A simple query parser for human-entered queries.org.apache.lucene.queryparser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.queryparser.xml Parser that produces Lucene Query objects from XML streams.org.apache.lucene.queryparser.xml.builders XML Parser factories for different Lucene Query/Filters.org.apache.lucene.sandbox.codecs.idversion A primary-key postings format that associates a version (long) with each term and can provide fail-fast lookups by ID and version.org.apache.lucene.sandbox.document This package contains several point types:BigIntegerPoint
for 128-bit integersLatLonPoint
for latitude/longitude geospatial pointsorg.apache.lucene.sandbox.queries Additional queries (some may have caveats or limitations)org.apache.lucene.sandbox.search This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial queries.org.apache.lucene.search Code to search indices.org.apache.lucene.search.comparators Comparators, used to compare hits so as to determine their sort order when collecting the top results withTopFieldCollector
.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.knn Classes related to vector search: knn and vector fields.org.apache.lucene.search.matchhighlight This package contains several components useful to build a highlighter on top of theMatches
API.org.apache.lucene.search.similarities This package contains the various ranking models that can be used in Lucene.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.analyzing Analyzer based autosuggest.org.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.search.uhighlight The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.org.apache.lucene.search.vectorhighlight Another highlighter implementation based on term vectors.org.apache.lucene.spatial3d Lucene field & query support for the spatial geometry implemented inorg.apache.lucene.spatial3d.geom
.org.apache.lucene.util Some utility classes.org.apache.lucene.util.automaton Finite-state automaton for regular expressions.org.apache.lucene.util.bkd Block KD-tree, implementing the generic spatial data structure described in this paper.org.apache.lucene.util.hnsw Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.org.apache.lucene.util.quantization Provides quantization methods for scaling vector values to smaller data types and possibly fewer dimensions -
Classes in org.apache.lucene.search used by org.apache.lucene.analysis.boost Class Description BoostAttribute Add thisAttribute
to aTermsEnum
returned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)
and update the boost on each returned term. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene50 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene50.compressing Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene70 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene80 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene84 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene90 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsVectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene91 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsVectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene92 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsVectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene94 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsVectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.backward_codecs.lucene95 Class Description KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighbors -
Classes in org.apache.lucene.search used by org.apache.lucene.classification Class Description IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.classification.document Class Description Query The abstract base class for queries.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.classification.utils Class Description IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeScoreDoc Holds one hit inTopDocs
. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsVectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.bitvectors Class Description TaskExecutor Executor wrapper responsible for the execution of concurrent tasks. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.lucene90 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.lucene90.compressing Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.lucene95 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.VectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.lucene99 Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsTaskExecutor Executor wrapper responsible for the execution of concurrent tasks.VectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.memory Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.perfield Class Description KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighbors -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.simpletext Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsVectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.codecs.uniformsplit.sharedterms Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.document Class Description ConstantScoreWeight A Weight that has a constant score equal to the boost of the wrapped query.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.DoubleValues Per-segment, per-document double values, which can be calculated at search-timeDoubleValuesSource Base class for producingDoubleValues
Explanation Expert: Describes the score computation for document and query.FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.IndexSearcher Implements search over a single IndexReader.LeafFieldComparator Expert: comparator that gets instantiated on each leaf from a top-levelFieldComparator
instance.Pruning ControlsLeafFieldComparator
how to skip documentsQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.ScorerSupplier A supplier ofScorer
.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
SimpleFieldComparator BaseFieldComparator
implementation that is used for all contexts.SortedNumericSelector.Type Type of selection to perform.SortedSetSelector.Type Type of selection to perform.SortField Stores information about how to sort documents by terms in an individual field.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.expressions Class Description DoubleValues Per-segment, per-document double values, which can be calculated at search-timeDoubleValuesSource Base class for producingDoubleValues
Explanation Expert: Describes the score computation for document and query.IndexSearcher Implements search over a single IndexReader.Rescorer Re-scores the topN results (TopDocs
) from an original query.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
SortField Stores information about how to sort documents by terms in an individual field.SortRescorer ARescorer
that re-sorts according to a provided Sort. -
Classes in org.apache.lucene.search used by org.apache.lucene.index Class Description DocIdSet A DocIdSet contains a set of doc ids.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.IndexSearcher Implements search over a single IndexReader.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsQuery The abstract base class for queries.ReferenceManager Utility class to safely share instances of a certain type across multiple threads, while periodically refreshing them.Scorer Expert: Common scoring functionality for different types of queries.Sort Encapsulates sort criteria for returned hits.SortField Stores information about how to sort documents by terms in an individual field.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
.VectorScorer Computes the similarity score between a given query vector and different document vectors. -
Classes in org.apache.lucene.search used by org.apache.lucene.index.memory Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.IndexSearcher Implements search over a single IndexReader.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsQuery The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.misc.index Class Description Query The abstract base class for queries.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.misc.search Class Description Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.IndexSearcher Implements search over a single IndexReader.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeScoreDoc Holds one hit inTopDocs
.ScoreMode Different modes of search.SimpleCollector BaseCollector
implementation that is used to collect all contexts.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
.TopDocsCollector A base class for all collectors that return aTopDocs
output.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.monitor Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.BooleanQuery.Builder A builder for boolean queries.BoostQuery AQuery
wrapper that allows to give a boost to the wrapped query.Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.Explanation Expert: Describes the score computation for document and query.IndexSearcher Implements search over a single IndexReader.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.SearcherFactory Factory class used bySearcherManager
to create new IndexSearchers.SearcherManager Utility class to safely shareIndexSearcher
instances across multiple threads, while periodically reopening.SimpleCollector BaseCollector
implementation that is used to collect all contexts.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.payloads Class Description Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queries Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.QueryVisitor Allows recursion through a query tree -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.function Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.DoubleValues Per-segment, per-document double values, which can be calculated at search-timeDoubleValuesSource Base class for producingDoubleValues
Explanation Expert: Describes the score computation for document and query.FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.FieldComparatorSource Provides aFieldComparator
for custom field sorting.IndexSearcher Implements search over a single IndexReader.LeafFieldComparator Expert: comparator that gets instantiated on each leaf from a top-levelFieldComparator
instance.LongValues Per-segment, per-document long values, which can be calculated at search-timeLongValuesSource Base class for producingLongValues
Matches Reports the positions and optionally offsets of all matching terms in a query for a single documentPruning ControlsLeafFieldComparator
how to skip documentsQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
SimpleFieldComparator BaseFieldComparator
implementation that is used for all contexts.SortField Stores information about how to sort documents by terms in an individual field.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.function.docvalues Class Description Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.function.valuesource Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.Scorer Expert: Common scoring functionality for different types of queries.SortedNumericSelector.Type Type of selection to perform.SortedSetSelector.Type Type of selection to perform.SortField Stores information about how to sort documents by terms in an individual field.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.intervals Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.Explanation Expert: Describes the score computation for document and query.FilterMatchesIterator A MatchesIterator that delegates all calls to another MatchesIteratorIndexSearcher Implements search over a single IndexReader.Matches Reports the positions and optionally offsets of all matching terms in a query for a single documentMatchesIterator An iterator over match positions (and optionally offsets) for a single document and fieldQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.mlt Class Description IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.QueryVisitor Allows recursion through a query tree -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.payloads Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.Explanation Expert: Describes the score computation for document and query.IndexSearcher Implements search over a single IndexReader.LeafSimScorer Similarity.SimScorer
on a specificLeafReader
.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.queries.spans Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.Explanation Expert: Describes the score computation for document and query.IndexSearcher Implements search over a single IndexReader.LeafSimScorer Similarity.SimScorer
on a specificLeafReader
.Matches Reports the positions and optionally offsets of all matching terms in a query for a single documentMultiTermQuery An abstractQuery
that matches documents containing a subset of terms provided by aFilteredTermsEnum
enumeration.MultiTermQuery.RewriteMethod Abstract class that defines how the query is rewritten.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
TopTermsRewrite Base rewrite method for collecting only the top terms via a priority queue.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.classic Class Description BooleanClause A clause in a BooleanQuery.BooleanClause.Occur Specifies how clauses are to occur in matching documents.MultiTermQuery.RewriteMethod Abstract class that defines how the query is rewritten.PhraseQuery A Query that matches documents containing a particular sequence of terms.Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.complexPhrase Class Description BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeSynonymQuery A query that treats multiple terms as synonyms. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.ext Class Description Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.flexible.standard Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.MultiTermQuery.RewriteMethod Abstract class that defines how the query is rewritten.Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.flexible.standard.builders Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.FuzzyQuery Implements the fuzzy search query.MatchAllDocsQuery A query that matches all documents.MatchNoDocsQuery A query that matches no documents.MultiPhraseQuery A generalized version ofPhraseQuery
, with the possibility of adding more than one term at the same position that are treated as a disjunction (OR).PrefixQuery A Query that matches documents containing terms with a specified prefix.Query The abstract base class for queries.RegexpQuery A fast regular expression query based on theorg.apache.lucene.util.automaton
package.TermQuery A Query that matches documents containing a term.TermRangeQuery A Query that matches documents within an range of terms.WildcardQuery Implements the wildcard search query. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.flexible.standard.config Class Description MultiTermQuery.RewriteMethod Abstract class that defines how the query is rewritten. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.flexible.standard.nodes Class Description Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.simple Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.surround.query Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery.Builder A builder for boolean queries.IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeTermQuery A Query that matches documents containing a term. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.xml Class Description Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.queryparser.xml.builders Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.sandbox.codecs.idversion Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.sandbox.document Class Description IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.TopFieldDocs Represents hits returned byIndexSearcher.search(Query,int,Sort)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.sandbox.queries Class Description IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.QueryVisitor Allows recursion through a query tree -
Classes in org.apache.lucene.search used by org.apache.lucene.sandbox.search Class Description BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.BulkScorer This class is used to score a range of documents at once, and is returned byWeight.bulkScorer(org.apache.lucene.index.LeafReaderContext)
.CollectionStatistics Contains statistics for a collection (field).Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.DisiPriorityQueue A priority queue of DocIdSetIterators that orders by current doc ID.DisiWrapper Wrapper used inDisiPriorityQueue
.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.Explanation Expert: Describes the score computation for document and query.FilterCollector Collector
delegator.FilterWeight AFilterWeight
contains anotherWeight
and implements all abstract methods by calling the contained weight's method.HitQueue Expert: Priority queue containing hit docsIndexSearcher Implements search over a single IndexReader.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.LeafSimScorer Similarity.SimScorer
on a specificLeafReader
.LongValues Per-segment, per-document long values, which can be calculated at search-timeLongValuesSource Base class for producingLongValues
Matches Reports the positions and optionally offsets of all matching terms in a query for a single documentMultiTermQuery An abstractQuery
that matches documents containing a subset of terms provided by aFilteredTermsEnum
enumeration.PhraseWeight Expert: Weight class for phrase matchingQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScorable.ChildScorable A child Scorer and its relationship to its parent.ScoreDoc Holds one hit inTopDocs
.ScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.ScorerSupplier A supplier ofScorer
.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
TermStatistics Contains statistics for a specific termTopDocs Represents hits returned byIndexSearcher.search(Query,int)
.TopFieldDocs Represents hits returned byIndexSearcher.search(Query,int,Sort)
.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.search Class Description AbstractKnnCollector AbstractKnnCollector is the default implementation for a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsAbstractKnnVectorQuery UsesKnnVectorsReader.search(java.lang.String, float[], org.apache.lucene.search.KnnCollector, org.apache.lucene.util.Bits)
to perform nearest neighbour search.AbstractMultiTermQueryConstantScoreWrapper Contains functionality common to bothMultiTermQueryConstantScoreBlendedWrapper
andMultiTermQueryConstantScoreWrapper
.AbstractMultiTermQueryConstantScoreWrapper.TermAndState AbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator AbstractVectorSimilarityQuery Search for all (approximate) vectors above a similarity threshold.AbstractVectorSimilarityQuery.VectorSimilarityScorer AutomatonQuery AQuery
that will match terms against a finite-state machine.BlendedTermQuery AQuery
that blends index statistics across multiple terms.BlendedTermQuery.Builder A Builder forBlendedTermQuery
.BlendedTermQuery.RewriteMethod ABlendedTermQuery.RewriteMethod
defines how queries for individual terms should be merged.BlockMaxConjunctionBulkScorer.DocAndScore BooleanClause A clause in a BooleanQuery.BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.BooleanQuery.Builder A builder for boolean queries.BooleanScorer.Bucket BooleanScorer.BulkScorerAndDoc BooleanScorer.DocIdStreamView BooleanScorer.HeadPriorityQueue BooleanScorer.OrCollector BooleanScorer.TailPriorityQueue BooleanWeight Expert: the Weight for BooleanQuery, used to normalize, score and explain these queries.BooleanWeight.WeightedBooleanClause BoostAttribute Add thisAttribute
to aTermsEnum
returned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)
and update the boost on each returned term.BoostQuery AQuery
wrapper that allows to give a boost to the wrapped query.BulkScorer This class is used to score a range of documents at once, and is returned byWeight.bulkScorer(org.apache.lucene.index.LeafReaderContext)
.CachingCollector Caches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.CachingCollector.NoScoreCachingCollector CachingCollector.NoScoreCachingLeafCollector CachingCollector.ScoreCachingCollector CheckedIntConsumer LikeIntConsumer
, but may throw checked exceptions.CollectionStatistics Contains statistics for a collection (field).Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.CollectorManager A manager of collectors.ConstantScoreWeight A Weight that has a constant score equal to the boost of the wrapped query.DisiPriorityQueue A priority queue of DocIdSetIterators that orders by current doc ID.DisiWrapper Wrapper used inDisiPriorityQueue
.DisjunctionMaxQuery A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries.DisjunctionScoreBlockBoundaryPropagator A helper to propagate block boundaries for disjunctions.DisjunctionScorer Base class for Scorers that score disjunctions.DisjunctionScorer.TwoPhase DocIdSet A DocIdSet contains a set of doc ids.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.DocIdStream A stream of doc IDs.DoubleValues Per-segment, per-document double values, which can be calculated at search-timeDoubleValuesSource Base class for producingDoubleValues
DoubleValuesSource.DoubleValuesHolder ExactPhraseMatcher.PostingsAndPosition Explanation Expert: Describes the score computation for document and query.FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.FieldComparatorSource Provides aFieldComparator
for custom field sorting.FieldDoc Expert: A ScoreDoc which also contains information about how to sort the referenced document.FieldExistsQuery AQuery
that matches documents that contain either aKnnFloatVectorField
,KnnByteVectorField
or a field that indexes norms or doc values.FieldValueHitQueue Expert: A hit queue for sorting by hits by terms in more than one field.FieldValueHitQueue.Entry Extension of ScoreDoc to also store theFieldComparator
slot.FilterCollector Collector
delegator.FilterLeafCollector LeafCollector
delegator.FilterScorable Filter aScorable
, intercepting methods and optionally changing their return valuesFilterScorer AFilterScorer
contains anotherScorer
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FuzzyAutomatonBuilder Builds a set of CompiledAutomaton for fuzzy matching on a given term, with specified maximum edit distance, fixed prefix and whether or not to allow transpositions.FuzzyTermsEnum.AutomatonAttribute Used for sharing automata between segmentsHitsThresholdChecker Used for defining custom algorithms to allow searches to early terminateImpactsDISI DocIdSetIterator
that skips non-competitive docs thanks to the indexed impacts.IndexSearcher Implements search over a single IndexReader.IndexSearcher.LeafSlice A class holding a subset of theIndexSearcher
s leaf contexts to be executed within a single thread.IndexSearcher.TooManyClauses Thrown when an attempt is made to add more thanIndexSearcher.TooManyClauses.getMaxClauseCount()
clauses.IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount Provides aDocIdSetIterator
along with an accurate count of documents provided by the iterator (or-1
if an accurate count is unknown).IndexSortSortedNumericDocValuesRangeQuery.ValueAndDoc IndexSortSortedNumericDocValuesRangeQuery.ValueComparator Compares the given document's value with a stored reference value.IndriAndQuery A Query that matches documents matching combinations of subqueries.IndriDisjunctionScorer The Indri implemenation of a disjunction scorer which stores the subscorers for the child queries.IndriQuery A Basic abstract query that all IndriQueries can extend to implement toString, equals, getClauses, and iterator.IndriScorer The Indri parent scorer that stores the boost so that IndriScorers can use the boost outside of the term.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsKnnFloatVectorQuery UsesKnnVectorsReader.search(String, float[], KnnCollector, Bits)
to perform nearest neighbour search.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.LeafFieldComparator Expert: comparator that gets instantiated on each leaf from a top-levelFieldComparator
instance.LeafSimScorer Similarity.SimScorer
on a specificLeafReader
.LongValues Per-segment, per-document long values, which can be calculated at search-timeLongValuesSource Base class for producingLongValues
LongValuesSource.LongValuesHolder LRUQueryCache.CacheAndCount Cache of doc ids with a count.LRUQueryCache.LeafCache Matches Reports the positions and optionally offsets of all matching terms in a query for a single documentMatchesIterator An iterator over match positions (and optionally offsets) for a single document and fieldMaxNonCompetitiveBoostAttribute Add thisAttribute
to a freshAttributeSource
before callingMultiTermQuery.getTermsEnum(Terms,AttributeSource)
.MaxScoreAccumulator Maintains the maximum score and its corresponding document id concurrentlyMaxScoreAccumulator.DocAndScore MaxScoreBulkScorer.ScoreAndDoc MaxScoreCache Compute maximum scores based onImpacts
and keep them in a cache in order not to run expensive similarity score computations multiple times on the same data.MultiPhraseQuery A generalized version ofPhraseQuery
, with the possibility of adding more than one term at the same position that are treated as a disjunction (OR).MultiPhraseQuery.Builder A builder for multi-phrase queriesMultiPhraseQuery.PostingsAndPosition MultiPhraseQuery.UnionPostingsEnum Takes the logical union of multiple PostingsEnum iterators.MultiPhraseQuery.UnionPostingsEnum.DocsQueue disjunction of postings ordered by docid.MultiPhraseQuery.UnionPostingsEnum.PositionsQueue queue of terms for a single document.Multiset AMultiset
is a set that allows for duplicate elements.MultiTermQuery An abstractQuery
that matches documents containing a subset of terms provided by aFilteredTermsEnum
enumeration.MultiTermQuery.RewriteMethod Abstract class that defines how the query is rewritten.NamedMatches Utility class to help extract the set of sub queries that have matched from a larger query.NGramPhraseQuery This is aPhraseQuery
which is optimized for n-gram phrase query.PhraseMatcher Base class for exact and sloppy phrase matchingPhrasePositions Position of a term in a document that takes into account the term offset within the phrase.PhraseQuery A Query that matches documents containing a particular sequence of terms.PhraseQuery.Builder A builder for phrase queries.PhraseQuery.PostingsAndFreq Term postings and position information for phrase matchingPhraseQueue PointInSetQuery Abstract query class to find all documents whose single or multi-dimensional point values, previously indexed with e.g.PointInSetQuery.Stream Iterator of encoded point values.PointRangeQuery Abstract class for range queries against single or multidimensional points such asIntPoint
.Pruning ControlsLeafFieldComparator
how to skip documentsQuery The abstract base class for queries.QueryCache A cache for queries.QueryCachingPolicy A policy defining which filters should be cached.QueryVisitor Allows recursion through a query treeReferenceManager Utility class to safely share instances of a certain type across multiple threads, while periodically refreshing them.ReferenceManager.RefreshListener Use to receive notification when a refresh has finished.Rescorer Re-scores the topN results (TopDocs
) from an original query.Scorable Allows access to the score of a QueryScorable.ChildScorable A child Scorer and its relationship to its parent.ScoreAndDoc Used byBulkScorer
s that need to pass aScorable
toLeafCollector.setScorer(org.apache.lucene.search.Scorable)
.ScoreDoc Holds one hit inTopDocs
.ScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.ScorerSupplier A supplier ofScorer
.ScoringRewrite Base rewrite method that translates each term into a query, and keeps the scores as computed by the query.ScoringRewrite.TermFreqBoostByteStart Special implementation of BytesStartArray that keeps parallel arrays for boost and docFreqSearcherFactory Factory class used bySearcherManager
to create new IndexSearchers.SearcherLifetimeManager.Pruner SearcherLifetimeManager.SearcherTracker SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
Sort Encapsulates sort criteria for returned hits.SortedNumericSelector.Type Type of selection to perform.SortedSetSelector.Type Type of selection to perform.SortField Stores information about how to sort documents by terms in an individual field.SortField.Type Specifies the type of the terms to be sorted, or special types such as CUSTOMSynonymQuery A query that treats multiple terms as synonyms.SynonymQuery.Builder A builder forSynonymQuery
.SynonymQuery.TermAndBoost TaskExecutor Executor wrapper responsible for the execution of concurrent tasks.TermCollectingRewrite TermCollectingRewrite.TermCollector TermInSetQuery Specialization for a disjunction over many terms that, by default, behaves like aConstantScoreQuery
over aBooleanQuery
containing onlyBooleanClause.Occur.SHOULD
clauses.TermRangeQuery A Query that matches documents within an range of terms.TermScorer Expert: AScorer
for documents matching aTerm
.TermStatistics Contains statistics for a specific termTimeLimitingCollector.TimerThread Deprecated.Thread used to timeout search requests.TimeLimitingKnnCollectorManager AKnnCollectorManager
that collects results with a timeout.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
.TopDocs.ShardRef TopDocsCollector A base class for all collectors that return aTopDocs
output.TopFieldCollector TopFieldDocs Represents hits returned byIndexSearcher.search(Query,int,Sort)
.TopScoreDocCollector TopTermsRewrite Base rewrite method for collecting only the top terms via a priority queue.TopTermsRewrite.ScoreTerm TotalHitCountCollector Just counts the total number of hits.TotalHits Description of the total number of hits of a query.TotalHits.Relation How theTotalHits.value
should be interpreted.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.VectorScorer Computes the similarity score between a given query vector and different document vectors.VectorSimilarityValuesSource An abstract class that provides the vector similarity scores between the query vector and theKnnFloatVectorField
orKnnByteVectorField
for documents.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.comparators Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.LeafFieldComparator Expert: comparator that gets instantiated on each leaf from a top-levelFieldComparator
instance.Pruning ControlsLeafFieldComparator
how to skip documentsScorable Allows access to the score of a Query -
Classes in org.apache.lucene.search used by org.apache.lucene.search.grouping Class Description Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.DoubleValues Per-segment, per-document double values, which can be calculated at search-timeDoubleValuesSource Base class for producingDoubleValues
FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.FilterCollector Collector
delegator.IndexSearcher Implements search over a single IndexReader.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.LeafFieldComparator Expert: comparator that gets instantiated on each leaf from a top-levelFieldComparator
instance.LongValues Per-segment, per-document long values, which can be calculated at search-timeLongValuesSource Base class for producingLongValues
Query The abstract base class for queries.Scorable Allows access to the score of a QueryScoreDoc Holds one hit inTopDocs
.ScoreMode Different modes of search.SimpleCollector BaseCollector
implementation that is used to collect all contexts.Sort Encapsulates sort criteria for returned hits.SortField Stores information about how to sort documents by terms in an individual field.TopDocsCollector A base class for all collectors that return aTopDocs
output.TotalHits Description of the total number of hits of a query.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.highlight Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.IndexSearcher Implements search over a single IndexReader.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsQuery The abstract base class for queries.QueryVisitor Allows recursion through a query tree -
Classes in org.apache.lucene.search used by org.apache.lucene.search.join Class Description AbstractKnnCollector AbstractKnnCollector is the default implementation for a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsAbstractKnnVectorQuery UsesKnnVectorsReader.search(java.lang.String, float[], org.apache.lucene.search.KnnCollector, org.apache.lucene.util.Bits)
to perform nearest neighbour search.Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.ConstantScoreWeight A Weight that has a constant score equal to the boost of the wrapped query.DocIdSet A DocIdSet contains a set of doc ids.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.Explanation Expert: Describes the score computation for document and query.FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.FilterWeight AFilterWeight
contains anotherWeight
and implements all abstract methods by calling the contained weight's method.IndexSearcher Implements search over a single IndexReader.KnnByteVectorQuery UsesKnnVectorsReader.search(String, byte[], KnnCollector, Bits)
to perform nearest neighbour search.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsKnnFloatVectorQuery UsesKnnVectorsReader.search(String, float[], KnnCollector, Bits)
to perform nearest neighbour search.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.Matches Reports the positions and optionally offsets of all matching terms in a query for a single documentMultiTermQuery An abstractQuery
that matches documents containing a subset of terms provided by aFilteredTermsEnum
enumeration.PointInSetQuery.Stream Iterator of encoded point values.Pruning ControlsLeafFieldComparator
how to skip documentsQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScorable.ChildScorable A child Scorer and its relationship to its parent.ScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.ScorerSupplier A supplier ofScorer
.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
SimpleCollector BaseCollector
implementation that is used to collect all contexts.SortField Stores information about how to sort documents by terms in an individual field.SortField.Type Specifies the type of the terms to be sorted, or special types such as CUSTOMTopDocs Represents hits returned byIndexSearcher.search(Query,int)
.TwoPhaseIterator Returned byScorer.twoPhaseIterator()
to expose an approximation of aDocIdSetIterator
.VectorScorer Computes the similarity score between a given query vector and different document vectors.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.knn Class Description AbstractKnnCollector AbstractKnnCollector is the default implementation for a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsIndexSearcher Implements search over a single IndexReader.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsTopDocs Represents hits returned byIndexSearcher.search(Query,int)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.matchhighlight Class Description IndexSearcher Implements search over a single IndexReader.MatchesIterator An iterator over match positions (and optionally offsets) for a single document and fieldQuery The abstract base class for queries.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.similarities Class Description CollectionStatistics Contains statistics for a collection (field).Explanation Expert: Describes the score computation for document and query.TermStatistics Contains statistics for a specific term -
Classes in org.apache.lucene.search used by org.apache.lucene.search.spell Class Description BooleanQuery.Builder A builder for boolean queries.IndexSearcher Implements search over a single IndexReader. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.suggest Class Description BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.LongValues Per-segment, per-document long values, which can be calculated at search-timeLongValuesSource Base class for producingLongValues
-
Classes in org.apache.lucene.search used by org.apache.lucene.search.suggest.analyzing Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.BooleanQuery.Builder A builder for boolean queries.IndexSearcher Implements search over a single IndexReader.Query The abstract base class for queries.SearcherManager Utility class to safely shareIndexSearcher
instances across multiple threads, while periodically reopening.Sort Encapsulates sort criteria for returned hits.TopFieldDocs Represents hits returned byIndexSearcher.search(Query,int,Sort)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.suggest.document Class Description BulkScorer This class is used to score a range of documents at once, and is returned byWeight.bulkScorer(org.apache.lucene.index.LeafReaderContext)
.Collector Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.Explanation Expert: Describes the score computation for document and query.IndexSearcher Implements search over a single IndexReader.LeafCollector Collector decouples the score from the collected doc: the score computation is skipped entirely if it's not needed.Query The abstract base class for queries.QueryVisitor Allows recursion through a query treeScoreDoc Holds one hit inTopDocs
.ScoreMode Different modes of search.Scorer Expert: Common scoring functionality for different types of queries.SegmentCacheable Interface defining whether or not an object can be cached against aLeafReader
SimpleCollector BaseCollector
implementation that is used to collect all contexts.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
.TotalHits Description of the total number of hits of a query.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.uhighlight Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.IndexSearcher Implements search over a single IndexReader.MatchesIterator An iterator over match positions (and optionally offsets) for a single document and fieldQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeTopDocs Represents hits returned byIndexSearcher.search(Query,int)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.search.vectorhighlight Class Description IndexSearcher Implements search over a single IndexReader.PhraseQuery A Query that matches documents containing a particular sequence of terms.Query The abstract base class for queries. -
Classes in org.apache.lucene.search used by org.apache.lucene.spatial3d Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.FieldComparator Expert: a FieldComparator compares hits so as to determine their sort order when collecting the top results withTopFieldCollector
.IndexSearcher Implements search over a single IndexReader.LeafFieldComparator Expert: comparator that gets instantiated on each leaf from a top-levelFieldComparator
instance.Pruning ControlsLeafFieldComparator
how to skip documentsQuery The abstract base class for queries.QueryVisitor Allows recursion through a query treeScorable Allows access to the score of a QueryScoreMode Different modes of search.SortField Stores information about how to sort documents by terms in an individual field.Weight Expert: Calculate query weights and build query scorers. -
Classes in org.apache.lucene.search used by org.apache.lucene.util Class Description BooleanClause.Occur Specifies how clauses are to occur in matching documents.BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g.BooleanQuery.Builder A builder for boolean queries.DocIdSet A DocIdSet contains a set of doc ids.DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.MultiPhraseQuery.Builder A builder for multi-phrase queriesQuery The abstract base class for queries.QueryVisitor Allows recursion through a query tree -
Classes in org.apache.lucene.search used by org.apache.lucene.util.automaton Class Description Query The abstract base class for queries.QueryVisitor Allows recursion through a query tree -
Classes in org.apache.lucene.search used by org.apache.lucene.util.bkd Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids. -
Classes in org.apache.lucene.search used by org.apache.lucene.util.hnsw Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.KnnCollector KnnCollector is a knn collector used for gathering kNN results and providing topDocs from the gathered neighborsTaskExecutor Executor wrapper responsible for the execution of concurrent tasks.TopDocs Represents hits returned byIndexSearcher.search(Query,int)
. -
Classes in org.apache.lucene.search used by org.apache.lucene.util.quantization Class Description DocIdSetIterator This abstract class defines methods to iterate over a set of non-decreasing doc ids.ScoreDoc Holds one hit inTopDocs
.VectorScorer Computes the similarity score between a given query vector and different document vectors.