gate.creole.annic.apache.lucene.search
Class PhraseQuery.PhraseWeight

java.lang.Object
  extended by gate.creole.annic.apache.lucene.search.PhraseQuery.PhraseWeight
All Implemented Interfaces:
Weight, Serializable
Enclosing class:
PhraseQuery

private class PhraseQuery.PhraseWeight
extends Object
implements Weight


Field Summary
private  float idf
           
private  float queryNorm
           
private  float queryWeight
           
private  Searcher searcher
           
private  float value
           
 
Constructor Summary
PhraseQuery.PhraseWeight(Searcher searcher)
           
 
Method Summary
 Explanation explain(IndexReader reader, int doc)
          An explanation of the score computation for the named document.
 Query getQuery()
          The query that this concerns.
 float getValue()
          The weight for this query.
 void normalize(float queryNorm)
          Assigns the query normalization factor to this.
 Scorer scorer(IndexReader reader, Searcher searcher)
          Constructs a scorer for this.
 float sumOfSquaredWeights()
          The sum of squared weights of contained query clauses.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

searcher

private Searcher searcher

value

private float value

idf

private float idf

queryNorm

private float queryNorm

queryWeight

private float queryWeight
Constructor Detail

PhraseQuery.PhraseWeight

public PhraseQuery.PhraseWeight(Searcher searcher)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getQuery

public Query getQuery()
Description copied from interface: Weight
The query that this concerns.

Specified by:
getQuery in interface Weight

getValue

public float getValue()
Description copied from interface: Weight
The weight for this query.

Specified by:
getValue in interface Weight

sumOfSquaredWeights

public float sumOfSquaredWeights()
                          throws IOException
Description copied from interface: Weight
The sum of squared weights of contained query clauses.

Specified by:
sumOfSquaredWeights in interface Weight
Throws:
IOException

normalize

public void normalize(float queryNorm)
Description copied from interface: Weight
Assigns the query normalization factor to this.

Specified by:
normalize in interface Weight

scorer

public Scorer scorer(IndexReader reader,
                     Searcher searcher)
              throws IOException
Description copied from interface: Weight
Constructs a scorer for this.

Specified by:
scorer in interface Weight
Throws:
IOException

explain

public Explanation explain(IndexReader reader,
                           int doc)
                    throws IOException
Description copied from interface: Weight
An explanation of the score computation for the named document.

Specified by:
explain in interface Weight
Throws:
IOException