|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.matching.dsms.BooleanFallback
public class BooleanFallback
This class provides a boolean fallback document score modifier for matching. In other words, if there any of the retrieved documents contain all undecorated query terms (ie query terms without any operators), then we remove from the result set documents that do not contain all undecorated query terms. Otherwise, we do nothing.
Constructor Summary | |
---|---|
BooleanFallback()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanFallback()
Method Detail |
---|
public 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 java.lang.String getName()
getName
in interface DocumentScoreModifier
public java.lang.Object clone()
clone
in interface DocumentScoreModifier
clone
in class java.lang.Object
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |