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 org.apache.lucene.search.Weight

See Also:
Serialized Form

Field Summary
protected  Map context
           
protected  float queryNorm
           
protected  float queryWeight
           
protected  org.apache.lucene.search.Searcher searcher
           
 
Constructor Summary
FunctionQuery.FunctionWeight(org.apache.lucene.search.Searcher searcher)
           
 
Method Summary
 org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader, int doc)
           
 org.apache.lucene.search.Query getQuery()
           
 float getValue()
           
 void normalize(float norm)
           
 org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.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 org.apache.lucene.search.Searcher searcher

queryNorm

protected float queryNorm

queryWeight

protected float queryWeight

context

protected Map context
Constructor Detail

FunctionQuery.FunctionWeight

public FunctionQuery.FunctionWeight(org.apache.lucene.search.Searcher searcher)
                             throws IOException
Throws:
IOException
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery()
Specified by:
getQuery in class org.apache.lucene.search.Weight

getValue

public float getValue()
Specified by:
getValue in class org.apache.lucene.search.Weight

sumOfSquaredWeights

public float sumOfSquaredWeights()
                          throws IOException
Specified by:
sumOfSquaredWeights in class org.apache.lucene.search.Weight
Throws:
IOException

normalize

public void normalize(float norm)
Specified by:
normalize in class org.apache.lucene.search.Weight

scorer

public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader,
                                              boolean scoreDocsInOrder,
                                              boolean topScorer)
                                       throws IOException
Specified by:
scorer in class org.apache.lucene.search.Weight
Throws:
IOException

explain

public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader,
                                                    int doc)
                                             throws IOException
Specified by:
explain in class org.apache.lucene.search.Weight
Throws:
IOException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.