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.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Class and Description |
---|---|
static class |
Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer>
A callback to gather information from a scorer and its sub-scorers.
|
Modifier and Type | Class and Description |
---|---|
protected class |
ConstantScoreQuery.ConstantScorer |
class |
ScoreCachingWrappingScorer
A
Scorer which wraps another scorer and caches the score of the
current document. |
Modifier and Type | Method and Description |
---|---|
abstract Scorer |
Weight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer)
Returns a
Scorer which scores documents in/out-of order according
to scoreDocsInOrder . |
Scorer |
DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer)
Create the scorer used to score our associated DisjunctionMaxQuery
|
Scorer |
ConstantScoreQuery.ConstantWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Scorer |
BooleanQuery.BooleanWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Modifier and Type | Method and Description |
---|---|
void |
TotalHitCountCollector.setScorer(Scorer scorer) |
void |
TopScoreDocCollector.setScorer(Scorer scorer) |
void |
TimeLimitingCollector.setScorer(Scorer scorer) |
void |
PositiveScoresOnlyCollector.setScorer(Scorer scorer) |
void |
MultiCollector.setScorer(Scorer s) |
void |
FieldComparator.setScorer(Scorer scorer)
Sets the Scorer to use in case a document's score is
needed.
|
void |
FieldComparator.RelevanceComparator.setScorer(Scorer scorer) |
abstract void |
Collector.setScorer(Scorer scorer)
Called before successive calls to
Collector.collect(int) . |
Modifier and Type | Method and Description |
---|---|
void |
Scorer.visitScorers(Scorer.ScorerVisitor<Query,Query,Scorer> visitor)
Expert: call this to gather details for all sub-scorers for this query.
|
void |
Scorer.visitSubScorers(Query parent,
BooleanClause.Occur relationship,
Scorer.ScorerVisitor<Query,Query,Scorer> visitor)
Scorer subclasses should implement this method if the subclass
itself contains multiple scorers to support gathering details for
sub-scorers via Scorer.ScorerVisitor
Note: this method will throw UnsupportedOperationException if no
associated Weight instance is provided to
Scorer(Weight)
|
Constructor and Description |
---|
ScoreCachingWrappingScorer(Scorer scorer)
Creates a new instance by wrapping the given scorer.
|
Modifier and Type | Class and Description |
---|---|
class |
PayloadNearQuery.PayloadNearSpanScorer |
protected class |
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer |
Modifier and Type | Method and Description |
---|---|
Scorer |
PayloadTermQuery.PayloadTermWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Scorer |
PayloadNearQuery.PayloadNearSpanWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Modifier and Type | Class and Description |
---|---|
class |
SpanScorer
Public for extension only.
|
Modifier and Type | Method and Description |
---|---|
Scorer |
SpanWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Modifier and Type | Method and Description |
---|---|
Scorer |
ScorerDocQueue.pop()
Removes and returns the least scorer of the ScorerDocQueue in log(size)
time.
|
Scorer |
ScorerDocQueue.top()
Returns the least Scorer of the ScorerDocQueue in constant time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ScorerDocQueue.insert(Scorer scorer)
Adds a Scorer to the ScorerDocQueue in log(size) time if either
the ScorerDocQueue is not full, or not lessThan(scorer, top()).
|
void |
ScorerDocQueue.put(Scorer scorer)
Adds a Scorer to a ScorerDocQueue in log(size) time.
|