public static class FunctionScoreQuery.FilterScoreFunction extends ScoreFunction
Modifier and Type | Field | Description |
---|---|---|
org.apache.lucene.search.Query |
filter |
|
ScoreFunction |
function |
Constructor | Description |
---|---|
FilterScoreFunction(org.apache.lucene.search.Query filter,
ScoreFunction function) |
Modifier and Type | Method | 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) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
equals, getDefaultScoreCombiner, hashCode
public 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 ScoreFunction
java.io.IOException
public boolean needsScores()
ScoreFunction
needsScores
in class ScoreFunction
true
if scores are needed.protected boolean doEquals(ScoreFunction other)
ScoreFunction
ScoreFunction
object of the same type is "equal to" this one.doEquals
in class ScoreFunction
protected int doHashCode()
doHashCode
in class ScoreFunction
protected ScoreFunction rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
rewrite
in class ScoreFunction
java.io.IOException
public float getWeight()
getWeight
in class ScoreFunction