org.apache.lucene.search.spans
Class SpanWeight
- java.lang.Object
-
- org.apache.lucene.search.spans.SpanWeight
-
- All Implemented Interfaces:
- java.io.Serializable, Weight
public class SpanWeight extends java.lang.Object implements Weight
Expert-only. Public for use by other weight implementations- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SpanWeight(SpanQuery query, Searcher searcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Explanationexplain(IndexReader reader, int doc)An explanation of the score computation for the named document.QuerygetQuery()The query that this concerns.floatgetValue()The weight for this query.voidnormalize(float queryNorm)Assigns the query normalization factor to this.Scorerscorer(IndexReader reader)Constructs a scorer for this.floatsumOfSquaredWeights()The sum of squared weights of contained query clauses.
-
-
-
Method Detail
-
getQuery
public Query getQuery()
Description copied from interface:WeightThe query that this concerns.
-
getValue
public float getValue()
Description copied from interface:WeightThe weight for this query.
-
sumOfSquaredWeights
public float sumOfSquaredWeights() throws java.io.IOExceptionDescription copied from interface:WeightThe sum of squared weights of contained query clauses.- Specified by:
sumOfSquaredWeightsin interfaceWeight- Throws:
java.io.IOException
-
normalize
public void normalize(float queryNorm)
Description copied from interface:WeightAssigns the query normalization factor to this.
-
scorer
public Scorer scorer(IndexReader reader) throws java.io.IOException
Description copied from interface:WeightConstructs a scorer for this.
-
explain
public Explanation explain(IndexReader reader, int doc) throws java.io.IOException
Description copied from interface:WeightAn explanation of the score computation for the named document.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG