Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
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.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.intervals |
Intervals queries
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Method and Description |
---|---|
Weight |
LatLonShapeQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
LatLonDocValuesDistanceQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
LatLonPointInPolygonQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
LatLonPointDistanceFeatureQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
SortedSetDocValuesRangeQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
SortedNumericDocValuesRangeQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
LatLonDocValuesBoxQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
LatLonPointDistanceQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
FeatureQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
LongDistanceFeatureQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
RangeFieldQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Modifier and Type | Method and Description |
---|---|
protected Scorer |
LatLonShapeQuery.RelationScorerSupplier.getIntersectsScorer(LatLonShapeQuery query,
LeafReader reader,
Weight weight,
DocIdSetBuilder docIdSetBuilder,
float boost,
ScoreMode scoreMode)
returns a Scorer for INTERSECT queries that uses a sparse bitset
|
protected Scorer |
LatLonShapeQuery.RelationScorerSupplier.getScorer(LatLonShapeQuery query,
Weight weight,
FixedBitSet intersect,
FixedBitSet disjoint,
float boost,
ScoreMode scoreMode)
returns a Scorer for all other (non INTERSECT) queries
|
Constructor and Description |
---|
DistanceScorer(Weight weight,
int maxDoc,
long leadCost,
float boost,
PointValues pointValues,
NumericDocValues docValues) |
DistanceScorer(Weight weight,
int maxDoc,
long leadCost,
float boost,
PointValues pointValues,
NumericDocValues docValues) |
Constructor and Description |
---|
DocumentFilteredLeafIndexReader(LeafReaderContext context,
Weight preserveWeight,
boolean negateFilter) |
Modifier and Type | Class and Description |
---|---|
protected class |
FunctionQuery.FunctionWeight |
private class |
FunctionRangeQuery.FunctionRangeWeight |
private static class |
FunctionScoreQuery.FunctionScoreWeight |
Modifier and Type | Field and Description |
---|---|
(package private) Weight |
FunctionScoreQuery.FunctionScoreWeight.inner |
Modifier and Type | Method and Description |
---|---|
Weight |
FunctionRangeQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
FunctionMatchQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
FunctionScoreQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
FunctionQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
FunctionValues.getRangeScorer(Weight weight,
LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper)
Yields a
Scorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int) . |
ValueSourceScorer |
FunctionValues.getScorer(Weight weight,
LeafReaderContext readerContext)
Yields a
Scorer that matches all documents,
and that which produces scores equal to FunctionValues.floatVal(int) . |
Constructor and Description |
---|
FunctionScoreWeight(Query query,
Weight inner,
DoubleValuesSource valueSource,
float boost) |
ValueSourceScorer(Weight weight,
LeafReaderContext readerContext,
FunctionValues values) |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
LongDocValues.getRangeScorer(Weight weight,
LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
DoubleDocValues.getRangeScorer(Weight weight,
LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
IntDocValues.getRangeScorer(Weight weight,
LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
DocTermsIndexDocValues.getRangeScorer(Weight weight,
LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper) |
Modifier and Type | Field and Description |
---|---|
(package private) Weight |
QueryDocValues.weight |
Modifier and Type | Class and Description |
---|---|
private class |
PayloadScoreQuery.PayloadSpanWeight |
class |
SpanPayloadCheckQuery.SpanPayloadCheckWeight
Weight that pulls its Spans using a PayloadSpanCollector
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
BM25FQuery.BM25FWeight |
(package private) class |
BooleanWeight
Expert: the Weight for BooleanQuery, used to
normalize, score and explain these queries.
|
class |
ConstantScoreWeight
A Weight that has a constant score equal to the boost of the wrapped query.
|
private static class |
CoveringQuery.CoveringWeight |
protected class |
DisjunctionMaxQuery.DisjunctionMaxWeight
Expert: the Weight for DisjunctionMaxQuery, used to
normalize, score and explain these queries.
|
class |
FilterWeight
A
FilterWeight contains another Weight and implements
all abstract methods by calling the contained weight's method. |
private class |
LRUQueryCache.CachingWrapperWeight |
(package private) class |
PhraseWeight |
(package private) class |
SynonymQuery.SynonymWeight |
(package private) class |
TermAutomatonQuery.TermAutomatonWeight |
(package private) class |
TermQuery.TermWeight |
Modifier and Type | Field and Description |
---|---|
protected Weight |
FilterWeight.in |
private Weight |
LRUQueryCache.CachingWrapperWeight.in |
(package private) Weight |
MultiTermQueryConstantScoreWrapper.WeightOrDocIdSet.weight |
private Weight |
DoubleValuesSource.WeightDoubleValuesSource.weight |
(package private) Weight |
TermInSetQuery.WeightOrDocIdSet.weight |
protected Weight |
Scorer.weight
the Scorer's parent Weight
|
(package private) Weight |
ConstantScoreQuery.ConstantBulkScorer.weight |
private Weight |
Boolean2ScorerSupplier.weight |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Weight> |
CoveringQuery.CoveringWeight.weights |
protected java.util.ArrayList<Weight> |
DisjunctionMaxQuery.DisjunctionMaxWeight.weights
The Weights for our subqueries, in 1-1 correspondence with disjuncts
|
(package private) java.util.ArrayList<Weight> |
BooleanWeight.weights |
Modifier and Type | Method and Description |
---|---|
Weight |
DocValuesTermsQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
DocValuesNumbersQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
TermAutomatonQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
BM25FQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
CoveringQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
DocValuesRewriteMethod.MultiTermQueryDocValuesWrapper.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
MultiTermQueryConstantScoreWrapper.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
BooleanQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
BoostQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
SynonymQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
DocValuesFieldExistsQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
IndexOrDocValuesQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
NormsFieldExistsQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
MatchAllDocsQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
TermInSetQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
DisjunctionMaxQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost)
Create the Weight used to score us
|
Weight |
Query.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost)
Expert: Constructs an appropriate Weight implementation for this query.
|
Weight |
TermQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
ConstantScoreQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
PointInSetQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
PhraseQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
MultiPhraseQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
MatchNoDocsQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
PointRangeQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
IndexSearcher.createWeight(Query query,
ScoreMode scoreMode,
float boost)
Creates a
Weight for the given query, potentially adding caching
if possible and configured. |
Weight |
LRUQueryCache.doCache(Weight weight,
QueryCachingPolicy policy) |
Weight |
QueryCache.doCache(Weight weight,
QueryCachingPolicy policy)
Return a wrapper around the provided
weight that will cache
matching docs per-segment accordingly to the given policy . |
Weight |
Scorer.getWeight()
returns parent Weight
|
Modifier and Type | Method and Description |
---|---|
Weight |
LRUQueryCache.doCache(Weight weight,
QueryCachingPolicy policy) |
Weight |
QueryCache.doCache(Weight weight,
QueryCachingPolicy policy)
Return a wrapper around the provided
weight that will cache
matching docs per-segment accordingly to the given policy . |
protected Explanation |
IndexSearcher.explain(Weight weight,
int doc)
Expert: low-level implementation method
Returns an Explanation that describes how
doc scored against
weight . |
protected void |
IndexSearcher.search(java.util.List<LeafReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
Constructor and Description |
---|
BlockMaxConjunctionScorer(Weight weight,
java.util.Collection<Scorer> scorersList)
Create a new
BlockMaxConjunctionScorer from scoring clauses. |
BM25FScorer(Weight weight,
DisiPriorityQueue queue,
DocIdSetIterator iterator,
MultiNormsLeafSimScorer simScorer) |
Boolean2ScorerSupplier(Weight weight,
java.util.Map<BooleanClause.Occur,java.util.Collection<ScorerSupplier>> subs,
ScoreMode scoreMode,
int minShouldMatch) |
CachingWrapperWeight(Weight in,
QueryCachingPolicy policy) |
ConjunctionScorer(Weight weight,
java.util.Collection<Scorer> required,
java.util.Collection<Scorer> scorers)
|
ConstantBulkScorer(BulkScorer bulkScorer,
Weight weight,
float theScore) |
ConstantScoreScorer(Weight weight,
float score,
ScoreMode scoreMode,
DocIdSetIterator disi)
Constructor based on a
DocIdSetIterator which will be used to
drive iteration. |
ConstantScoreScorer(Weight weight,
float score,
ScoreMode scoreMode,
TwoPhaseIterator twoPhaseIterator)
Constructor based on a
TwoPhaseIterator . |
CoveringScorer(Weight weight,
java.util.Collection<Scorer> scorers,
LongValues minMatchValues,
int maxDoc) |
DisjunctionMaxScorer(Weight weight,
float tieBreakerMultiplier,
java.util.List<Scorer> subScorers,
ScoreMode scoreMode)
Creates a new instance of DisjunctionMaxScorer
|
DisjunctionScorer(Weight weight,
java.util.List<Scorer> subScorers,
ScoreMode scoreMode) |
DisjunctionSumScorer(Weight weight,
java.util.List<Scorer> subScorers,
ScoreMode scoreMode)
Construct a
DisjunctionScorer . |
FilterScorer(Scorer in,
Weight weight)
Create a new FilterScorer with a specific weight
|
FilterWeight(Query query,
Weight weight)
Alternative constructor.
|
FilterWeight(Weight weight)
Default constructor.
|
MinShouldMatchSumScorer(Weight weight,
java.util.Collection<Scorer> scorers,
int minShouldMatch) |
PhraseScorer(Weight weight,
PhraseMatcher matcher,
ScoreMode scoreMode,
LeafSimScorer simScorer) |
Scorer(Weight weight)
Constructs a Scorer
|
SynonymScorer(Weight weight,
DisiPriorityQueue queue,
DocIdSetIterator iterator,
ImpactsDISI impactsDisi,
LeafSimScorer simScorer) |
TermScorer(Weight weight,
ImpactsEnum impactsEnum,
LeafSimScorer docScorer)
Construct a
TermScorer that will use impacts to skip blocks of
non-competitive documents. |
TermScorer(Weight weight,
PostingsEnum postingsEnum,
LeafSimScorer docScorer)
Construct a
TermScorer that will iterate all documents. |
WANDScorer(Weight weight,
java.util.Collection<Scorer> scorers) |
WeightDoubleValuesSource(Weight weight) |
WeightOrDocIdSet(Weight weight) |
WeightOrDocIdSet(Weight weight) |
Constructor and Description |
---|
CoveringWeight(Query query,
java.util.Collection<Weight> weights,
LongValuesSource minimumNumberMatch) |
Modifier and Type | Field and Description |
---|---|
private Weight |
BlockGroupingCollector.lastDocPerGroup |
Constructor and Description |
---|
BlockGroupingCollector(Sort groupSort,
int topNGroups,
boolean needsScores,
Weight lastDocPerGroup)
Create the single pass collector.
|
Modifier and Type | Class and Description |
---|---|
private class |
IntervalQuery.IntervalWeight |
Modifier and Type | Method and Description |
---|---|
Weight |
IntervalQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Constructor and Description |
---|
IntervalScorer(Weight weight,
IntervalIterator intervals,
int minExtent,
float boost,
IntervalScoreFunction scoreFunction) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
GlobalOrdinalsQuery.W |
(package private) class |
GlobalOrdinalsWithScoreQuery.W |
private static class |
ToChildBlockJoinQuery.ToChildBlockJoinWeight |
private static class |
ToParentBlockJoinQuery.BlockJoinWeight |
Modifier and Type | Field and Description |
---|---|
private Weight |
GlobalOrdinalsQuery.W.approximationWeight |
Modifier and Type | Method and Description |
---|---|
Weight |
ParentChildrenBlockJoinQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
GlobalOrdinalsQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
ToParentBlockJoinQuery.createWeight(IndexSearcher searcher,
ScoreMode weightScoreMode,
float boost) |
Weight |
PointInSetIncludingScoreQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
TermsIncludingScoreQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
ToChildBlockJoinQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Weight |
GlobalOrdinalsWithScoreQuery.createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
Modifier and Type | Method and Description |
---|---|
Explanation |
ToParentBlockJoinQuery.BlockJoinScorer.explain(LeafReaderContext context,
Weight childWeight) |
Constructor and Description |
---|
BaseGlobalOrdinalScorer(Weight weight,
SortedDocValues values,
DocIdSetIterator approximationScorer) |
BlockJoinScorer(Weight weight,
Scorer childScorer,
BitSet parentBits,
ScoreMode scoreMode) |
BlockJoinWeight(Query joinQuery,
Weight childWeight,
BitSetProducer parentsFilter,
ScoreMode scoreMode) |
MVInOrderScorer(Weight weight,
TermsEnum termsEnum,
int maxDoc,
long cost) |
OrdinalMapScorer(Weight weight,
float score,
LongBitSet foundOrds,
SortedDocValues values,
DocIdSetIterator approximationScorer,
LongValues segmentOrdToGlobalOrdLookup) |
OrdinalMapScorer(Weight weight,
GlobalOrdinalsWithScoreCollector collector,
SortedDocValues values,
DocIdSetIterator approximation,
LongValues segmentOrdToGlobalOrdLookup) |
SegmentOrdinalScorer(Weight weight,
float score,
LongBitSet foundOrds,
SortedDocValues values,
DocIdSetIterator approximationScorer) |
SegmentOrdinalScorer(Weight weight,
GlobalOrdinalsWithScoreCollector collector,
SortedDocValues values,
DocIdSetIterator approximation) |
SVInOrderScorer(Weight weight,
TermsEnum termsEnum,
int maxDoc,
long cost) |
ToChildBlockJoinScorer(Weight weight,
Scorer parentScorer,
BitSet parentBits,
boolean doScores) |
ToChildBlockJoinWeight(Query joinQuery,
Weight parentWeight,
BitSetProducer parentsFilter,
boolean doScores) |
W(Query query,
Weight approximationWeight) |
W(Query query,
Weight approximationWeight,
float boost) |
Modifier and Type | Class and Description |
---|---|
class |
SpanContainingQuery.SpanContainingWeight |
class |
SpanContainQuery.SpanContainWeight |
private class |
SpanNearQuery.SpanGapQuery.SpanGapWeight |
class |
SpanNearQuery.SpanNearWeight |
class |
SpanNotQuery.SpanNotWeight |
class |
SpanOrQuery.SpanOrWeight |
class |
SpanPositionCheckQuery.SpanPositionCheckWeight |
class |
SpanTermQuery.SpanTermWeight |
class |
SpanWeight
Expert-only.
|
class |
SpanWithinQuery.SpanWithinWeight |