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 Weight
public float getValue()
getValue
in interface Weight
public float sumOfSquaredWeights() throws IOException
sumOfSquaredWeights
in interface Weight
IOException
public void normalize(float queryNorm)
normalize
in interface Weight
public Scorer scorer(IndexReader reader) throws IOException
scorer
in interface Weight
IOException
public Explanation explain(IndexReader reader, int doc) throws IOException
explain
in interface Weight
IOException