public static class FunctionScoreQuery.FilterScoreFunction extends ScoreFunction
| Modifier and Type | Field and Description |
|---|---|
org.apache.lucene.search.Query |
filter |
ScoreFunction |
function |
| Constructor and Description |
|---|
FilterScoreFunction(org.apache.lucene.search.Query filter,
ScoreFunction function) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doEquals(ScoreFunction other)
Indicates whether some other
ScoreFunction object of the same type is "equal to" this one. |
protected int |
doHashCode() |
LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
float |
getWeight() |
boolean |
needsScores()
Indicates if document scores are needed by this function.
|
protected ScoreFunction |
rewrite(org.apache.lucene.index.IndexReader reader) |
equals, getDefaultScoreCombiner, hashCodepublic final org.apache.lucene.search.Query filter
public final ScoreFunction function
public FilterScoreFunction(org.apache.lucene.search.Query filter,
ScoreFunction function)
public LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
getLeafScoreFunction in class ScoreFunctionjava.io.IOExceptionpublic boolean needsScores()
ScoreFunctionneedsScores in class ScoreFunctiontrue if scores are needed.protected boolean doEquals(ScoreFunction other)
ScoreFunctionScoreFunction object of the same type is "equal to" this one.doEquals in class ScoreFunctionprotected int doHashCode()
doHashCode in class ScoreFunctionprotected ScoreFunction rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
rewrite in class ScoreFunctionjava.io.IOExceptionpublic float getWeight()
getWeight in class ScoreFunction