org.apache.solr.search.function
Class FunctionQuery.FunctionWeight

java.lang.Object
  extended by org.apache.lucene.search.Weight
      extended by org.apache.solr.search.function.FunctionQuery.FunctionWeight
All Implemented Interfaces:
Serializable
Enclosing class:
FunctionQuery

protected class FunctionQuery.FunctionWeight
extends Weight

See Also:
Serialized Form

Field Summary
protected  Map context
           
protected  float queryNorm
           
protected  float queryWeight
           
protected  Searcher searcher
           
 
Constructor Summary
FunctionQuery.FunctionWeight(Searcher searcher)
           
 
Method Summary
 Explanation explain(IndexReader reader, int doc)
           
 Query getQuery()
           
 float getValue()
           
 void normalize(float norm)
           
 Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
           
 float sumOfSquaredWeights()
           
 
Methods inherited from class org.apache.lucene.search.Weight
scoresDocsOutOfOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searcher

protected Searcher searcher

queryNorm

protected float queryNorm

queryWeight

protected float queryWeight

context

protected Map context
Constructor Detail

FunctionQuery.FunctionWeight

public FunctionQuery.FunctionWeight(Searcher searcher)
                             throws IOException
Throws:
IOException
Method Detail

getQuery

public Query getQuery()
Specified by:
getQuery in class Weight

getValue

public float getValue()
Specified by:
getValue in class Weight

sumOfSquaredWeights

public float sumOfSquaredWeights()
                          throws IOException
Specified by:
sumOfSquaredWeights in class Weight
Throws:
IOException

normalize

public void normalize(float norm)
Specified by:
normalize in class Weight

scorer

public Scorer scorer(IndexReader reader,
                     boolean scoreDocsInOrder,
                     boolean topScorer)
              throws IOException
Specified by:
scorer in class Weight
Throws:
IOException

explain

public Explanation explain(IndexReader reader,
                           int doc)
                    throws IOException
Specified by:
explain in class Weight
Throws:
IOException


Copyright © 2010 Apache Software Foundation. All Rights Reserved.