public class CompletionScorer extends BulkScorer
score(LeafCollector, Bits, int, int) is called
for each leaf reader.
accept(int,Bits) and score(float, float)
is called for every matched completion (i.e. document)| Modifier and Type | Field and Description |
|---|---|
protected CompletionWeight |
weight
weight that created this scorer
|
| Modifier | Constructor and Description |
|---|---|
protected |
CompletionScorer(CompletionWeight weight,
NRTSuggester suggester,
LeafReader reader,
Bits filterDocs,
boolean filtered,
Automaton automaton)
Creates a scorer for a field-specific
suggester scoped by acceptDocs |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(int docID,
Bits liveDocs)
Returns true if a document with
docID is accepted,
false if the docID maps to a deleted
document or has been filtered out |
long |
cost() |
float |
score(float weight,
float boost)
Returns the score for a matched completion
based on the query time boost and the
index time weight.
|
int |
score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
scoreprotected final CompletionWeight weight
protected CompletionScorer(CompletionWeight weight, NRTSuggester suggester, LeafReader reader, Bits filterDocs, boolean filtered, Automaton automaton) throws IOException
suggester scoped by acceptDocsIOExceptionpublic int score(LeafCollector collector, Bits acceptDocs, int min, int max) throws IOException
score in class BulkScorerIOExceptionpublic long cost()
cost in class BulkScorerpublic final boolean accept(int docID,
Bits liveDocs)
docID is accepted,
false if the docID maps to a deleted
document or has been filtered outliveDocs - the Bits representing live docs, or possibly
null if all docs are livepublic float score(float weight,
float boost)
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.