Class TmFuzzyScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- net.sf.okapi.lib.search.lucene.scorer.TmFuzzyScorer
-
public class TmFuzzyScorer extends org.apache.lucene.search.Scorer- Author:
- HARGRAVEJE
-
-
Constructor Summary
Constructors Constructor Description TmFuzzyScorer(float threshold, org.apache.lucene.search.Weight weight, List<org.apache.lucene.index.Term> terms, org.apache.lucene.index.IndexReader reader, String termCountField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdocID()floatgetMaxScore(int i)org.apache.lucene.search.DocIdSetIteratoriterator()floatscore()-
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getWeight, twoPhaseIterator
-
-
-
-
Constructor Detail
-
TmFuzzyScorer
public TmFuzzyScorer(float threshold, org.apache.lucene.search.Weight weight, List<org.apache.lucene.index.Term> terms, org.apache.lucene.index.IndexReader reader, String termCountField) throws IOException- Parameters:
threshold-weight-terms-reader-- Throws:
IOException
-
-
Method Detail
-
score
public float score() throws IOException- Specified by:
scorein classorg.apache.lucene.search.Scorable- Throws:
IOException
-
docID
public int docID()
- Specified by:
docIDin classorg.apache.lucene.search.Scorable
-
iterator
public org.apache.lucene.search.DocIdSetIterator iterator()
- Specified by:
iteratorin classorg.apache.lucene.search.Scorer
-
getMaxScore
public float getMaxScore(int i) throws IOException- Specified by:
getMaxScorein classorg.apache.lucene.search.Scorer- Throws:
IOException
-
-