public class BooleanFallback extends Object implements DocumentScoreModifier
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
BooleanFallback() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates the close of this object
|
protected HashSet<String> |
getMinusTerms(Query q)
Builds a hashset containing all terms that are required NOT
to be in the query
|
String |
getName()
Returns the name of the modifier, which is BooleanFallback.
|
boolean |
modifyScores(Index index,
MatchingQueryTerms queryTerms,
ResultSet resultSet)
Applies boolean fallback to the given result set.
|
protected HashSet<String> getMinusTerms(Query q)
q
- The original query as was used to generate MatchingQueryTermspublic boolean modifyScores(Index index, MatchingQueryTerms queryTerms, ResultSet resultSet)
modifyScores
in interface DocumentScoreModifier
index
- The data structures used for retrieval.queryTerms
- the terms of the query.resultSet
- the set of retrieved documents for the query.public String getName()
getName
in interface DocumentScoreModifier
public Object clone()
clone
in interface DocumentScoreModifier
clone
in class Object
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow