class SpanWeight
extends Object
implements Weight
| Modifier and Type | Field and Description |
|---|---|
private SpanQuery |
query |
private float |
queryNorm |
private float |
queryWeight |
private Searcher |
searcher |
private float |
value |
| Constructor and Description |
|---|
SpanWeight(SpanQuery query,
Searcher searcher) |
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(IndexReader reader,
int doc) |
Query |
getQuery() |
Searcher |
getSearcher() |
float |
getValue() |
void |
normalize(float queryNorm) |
Scorer |
scorer(IndexReader reader) |
float |
sumOfSquaredWeights() |
private Searcher searcher
private float value
private float queryNorm
private float queryWeight
private SpanQuery query
public SpanWeight(SpanQuery query, Searcher searcher)
public Searcher getSearcher()
public Query getQuery()
getQuery in interface Weightpublic float getValue()
getValue in interface Weightpublic float sumOfSquaredWeights()
throws IOException
sumOfSquaredWeights in interface WeightIOExceptionpublic void normalize(float queryNorm)
normalize in interface Weightpublic Scorer scorer(IndexReader reader)
throws IOException
scorer in interface WeightIOExceptionpublic Explanation explain(IndexReader reader,
int doc)
throws IOException
explain in interface WeightIOException