Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Class and Description |
---|---|
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.
|
class |
RandomAccessWeight
Base class to build
Weight s that are based on random-access
structures such as live docs or doc values. |
Modifier and Type | Field and Description |
---|---|
protected Weight |
Scorer.weight
the Scorer's parent Weight.
|
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Weight> |
DisjunctionMaxQuery.DisjunctionMaxWeight.weights
The Weights for our subqueries, in 1-1 correspondence with disjuncts
|
protected ArrayList<Weight> |
BooleanWeight.weights |
Modifier and Type | Method and Description |
---|---|
Weight |
IndexSearcher.createNormalizedWeight(Query query,
boolean needsScores)
Creates a normalized weight for a top-level
Query . |
Weight |
DisjunctionMaxQuery.createWeight(IndexSearcher searcher,
boolean needsScores)
Create the Weight used to score us
|
Weight |
MultiPhraseQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
BooleanQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
DocValuesRangeQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
Filter.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
DocValuesTermsQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
Query.createWeight(IndexSearcher searcher,
boolean needsScores)
Expert: Constructs an appropriate Weight implementation for this query.
|
Weight |
TermQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
FieldValueQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
PhraseQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
ConstantScoreQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
FilteredQuery.createWeight(IndexSearcher searcher,
boolean needsScores)
Returns a Weight that applies the filter to the enclosed query's Weight.
|
Weight |
MatchAllDocsQuery.createWeight(IndexSearcher searcher,
boolean needsScores) |
Weight |
CachingWrapperQuery.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 |
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 . |
BulkScorer |
FilteredQuery.FilterStrategy.filteredBulkScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
BulkScorer based on this
strategy. |
abstract Scorer |
FilteredQuery.FilterStrategy.filteredScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
Scorer based on this strategy. |
Scorer |
FilteredQuery.RandomAccessFilterStrategy.filteredScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet) |
protected void |
IndexSearcher.search(List<LeafReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
Constructor and Description |
---|
ConstantScoreQuery.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 . |
FilterScorer(Scorer in,
Weight weight)
Create a new FilterScorer with a specific weight
|
Scorer(Weight weight)
Constructs a Scorer
|
Modifier and Type | Class and Description |
---|---|
class |
PayloadNearQuery.PayloadNearSpanWeight |
protected class |
PayloadTermQuery.PayloadTermWeight |
Modifier and Type | Class and Description |
---|---|
class |
SpanWeight
Expert-only.
|
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.