org.apache.lucene.search.spans

Class SpanWeight

public class SpanWeight extends Object implements Weight

Expert-only. Public for use by other weight implementations
Field Summary
protected floatidf
protected SpanQueryquery
protected floatqueryNorm
protected floatqueryWeight
protected Similaritysimilarity
protected Setterms
protected floatvalue
Constructor Summary
SpanWeight(SpanQuery query, Searcher searcher)
Method Summary
Explanationexplain(IndexReader reader, int doc)
QuerygetQuery()
floatgetValue()
voidnormalize(float queryNorm)
Scorerscorer(IndexReader reader)
floatsumOfSquaredWeights()

Field Detail

idf

protected float idf

query

protected SpanQuery query

queryNorm

protected float queryNorm

queryWeight

protected float queryWeight

similarity

protected Similarity similarity

terms

protected Set terms

value

protected float value

Constructor Detail

SpanWeight

public SpanWeight(SpanQuery query, Searcher searcher)

Method Detail

explain

public Explanation explain(IndexReader reader, int doc)

getQuery

public Query getQuery()

getValue

public float getValue()

normalize

public void normalize(float queryNorm)

scorer

public Scorer scorer(IndexReader reader)

sumOfSquaredWeights

public float sumOfSquaredWeights()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.