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 |
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.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.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 |
LatLonPointBoxQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
LatLonPointDistanceQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
LatLonPointInPolygonQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Constructor and Description |
---|
DocumentFilteredLeafIndexReader(LeafReaderContext context,
Weight preserveWeight,
boolean negateFilter) |
Modifier and Type | Class and Description |
---|---|
private class |
CustomScoreQuery.CustomWeight |
Modifier and Type | Field and Description |
---|---|
(package private) Weight |
CustomScoreQuery.CustomWeight.subQueryWeight |
(package private) Weight[] |
CustomScoreQuery.CustomWeight.valSrcWeights |
(package private) Weight |
TermsQuery.WeightOrDocIdSet.weight |
Modifier and Type | Method and Description |
---|---|
Weight |
BoostingQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
CustomScoreQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
TermsQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Constructor and Description |
---|
WeightOrDocIdSet(Weight weight) |
Modifier and Type | Class and Description |
---|---|
private class |
BoostedQuery.BoostedWeight |
protected class |
FunctionQuery.FunctionWeight |
private class |
FunctionRangeQuery.FunctionRangeWeight |
Modifier and Type | Field and Description |
---|---|
(package private) Weight |
BoostedQuery.BoostedWeight.qWeight |
Modifier and Type | Method and Description |
---|---|
Weight |
BoostedQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
FunctionQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
FunctionRangeQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
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 |
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.
|
protected class |
DisjunctionMaxQuery.DisjunctionMaxWeight
Expert: the Weight for DisjunctionMaxQuery, used to
normalize, score and explain these queries.
|
private class |
LRUQueryCache.CachingWrapperWeight |
private class |
MultiPhraseQuery.MultiPhraseWeight |
private class |
PhraseQuery.PhraseWeight |
class |
RandomAccessWeight
Base class to build
Weight s that are based on random-access
structures such as live docs or doc values. |
(package private) class |
SynonymQuery.SynonymWeight |
(package private) class |
TermAutomatonQuery.TermAutomatonWeight |
(package private) class |
TermQuery.TermWeight |
Modifier and Type | Field and Description |
---|---|
private Weight |
LRUQueryCache.CachingWrapperWeight.in |
(package private) Weight |
ConstantScoreQuery.ConstantBulkScorer.weight |
(package private) Weight |
MultiTermQueryConstantScoreWrapper.WeightOrDocIdSet.weight |
protected Weight |
Scorer.weight
the Scorer's parent Weight.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<Weight> |
BooleanWeight.weights |
protected java.util.ArrayList<Weight> |
DisjunctionMaxQuery.DisjunctionMaxWeight.weights
The Weights for our subqueries, in 1-1 correspondence with disjuncts
|
Modifier and Type | Method and Description |
---|---|
Weight |
IndexSearcher.createNormalizedWeight(Query query,
boolean needsScores)
Creates a normalized weight for a top-level
Query . |
Weight |
BooleanQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
BoostQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
ConstantScoreQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
DisjunctionMaxQuery.createWeight(IndexSearcher searcher,
boolean needsScores)
Create the Weight used to score us
|
Weight |
DocValuesRewriteMethod.MultiTermQueryDocValuesWrapper.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
FieldValueQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
MatchAllDocsQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
MultiPhraseQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
MultiTermQueryConstantScoreWrapper.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
PhraseQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
PointInSetQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
PointRangeQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
Query.createWeight(IndexSearcher searcher,
boolean needsScores)
Expert: Constructs an appropriate Weight implementation for this query.
|
Weight |
SynonymQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
TermQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
DocValuesNumbersQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
DocValuesRangeQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
DocValuesTermsQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
TermAutomatonQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
IndexSearcher.createWeight(Query query,
boolean needsScores)
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 |
FakeScorer.getWeight() |
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 |
---|
CachingWrapperWeight(Weight in,
QueryCachingPolicy policy) |
ConjunctionScorer(Weight weight,
java.util.List<Scorer> required,
java.util.List<Scorer> scorers) |
ConjunctionScorer(Weight weight,
java.util.List<Scorer> required,
java.util.List<Scorer> scorers,
float coord)
|
ConstantBulkScorer(BulkScorer bulkScorer,
Weight weight,
float theScore) |
ConstantScoreScorer(Weight weight,
float score,
DocIdSetIterator disi)
Constructor based on a
DocIdSetIterator which will be used to
drive iteration. |
ConstantScoreScorer(Weight weight,
float score,
TwoPhaseIterator twoPhaseIterator)
Constructor based on a
TwoPhaseIterator . |
CoordinatingConjunctionScorer(Weight weight,
float[] coords,
Scorer req,
int reqCount,
Scorer opt) |
DisjunctionMaxScorer(Weight weight,
float tieBreakerMultiplier,
java.util.List<Scorer> subScorers,
boolean needsScores)
Creates a new instance of DisjunctionMaxScorer
|
DisjunctionScorer(Weight weight,
java.util.List<Scorer> subScorers,
boolean needsScores) |
DisjunctionSumScorer(Weight weight,
java.util.List<Scorer> subScorers,
float[] coord,
boolean needsScores)
Construct a
DisjunctionScorer . |
ExactPhraseScorer(Weight weight,
PhraseQuery.PostingsAndFreq[] postings,
Similarity.SimScorer docScorer,
boolean needsScores,
float matchCost) |
FilterScorer(Scorer in,
Weight weight)
Create a new FilterScorer with a specific weight
|
MinShouldMatchSumScorer(Weight weight,
java.util.Collection<Scorer> scorers,
int minShouldMatch,
float[] coord) |
Scorer(Weight weight)
Constructs a Scorer
|
SloppyPhraseScorer(Weight weight,
PhraseQuery.PostingsAndFreq[] postings,
int slop,
Similarity.SimScorer docScorer,
boolean needsScores,
float matchCost) |
SynonymScorer(Similarity.SimScorer similarity,
Weight weight,
java.util.List<Scorer> subScorers) |
TermScorer(Weight weight,
PostingsEnum td,
Similarity.SimScorer docScorer)
Construct a
TermScorer . |
WeightOrDocIdSet(Weight weight) |
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 |
---|---|
(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 |
private Weight |
GlobalOrdinalsWithScoreQuery.W.approximationWeight |
private Weight |
ToParentBlockJoinQuery.BlockJoinWeight.childWeight |
private Weight |
ToChildBlockJoinQuery.ToChildBlockJoinWeight.parentWeight |
Modifier and Type | Method and Description |
---|---|
Weight |
GlobalOrdinalsQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
GlobalOrdinalsWithScoreQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
PointInSetIncludingScoreQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
TermsIncludingScoreQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
ToChildBlockJoinQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
ToParentBlockJoinQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Modifier and Type | Method and Description |
---|---|
Explanation |
ToParentBlockJoinQuery.BlockJoinScorer.explain(LeafReaderContext context,
Weight childWeight) |
protected void |
ToParentBlockJoinIndexSearcher.search(java.util.List<LeafReaderContext> leaves,
Weight weight,
Collector collector) |
Constructor and Description |
---|
BaseGlobalOrdinalScorer(Weight weight,
SortedDocValues values,
DocIdSetIterator approximationScorer) |
BlockJoinScorer(Weight weight,
Scorer childScorer,
BitSet parentBits,
int firstChildDoc,
ScoreMode scoreMode) |
BlockJoinWeight(Query joinQuery,
Weight childWeight,
BitSetProducer parentsFilter,
ScoreMode scoreMode) |
ChildrenMatchesScorer(Weight weight)
inherited constructor
|
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) |
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 |