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 int
docID()
float
getMaxScore(int i)
org.apache.lucene.search.DocIdSetIterator
iterator()
float
score()
-
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:
score
in classorg.apache.lucene.search.Scorable
- Throws:
IOException
-
docID
public int docID()
- Specified by:
docID
in classorg.apache.lucene.search.Scorable
-
iterator
public org.apache.lucene.search.DocIdSetIterator iterator()
- Specified by:
iterator
in classorg.apache.lucene.search.Scorer
-
getMaxScore
public float getMaxScore(int i) throws IOException
- Specified by:
getMaxScore
in classorg.apache.lucene.search.Scorer
- Throws:
IOException
-
-