|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.matching.dsms.BooleanScoreModifier
public class BooleanScoreModifier
If not all the query terms appear in a document, then this modifier zeros the document's score.
| Constructor Summary | |
|---|---|
BooleanScoreModifier()
An empty default constructor. |
|
BooleanScoreModifier(java.util.ArrayList ts)
A constructor where we specify which of the query terms should exist in the documents. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone this DSM. |
java.lang.String |
getName()
Returns the name of the document score modifier. |
boolean |
modifyScores(Index index,
MatchingQueryTerms query,
ResultSet resultSet)
Zeros the scores of documents in which only some of the query terms appear. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanScoreModifier()
public BooleanScoreModifier(java.util.ArrayList ts)
ts - ArrayList the query terms that should
appear in the retrieved documents after
applying this modifier.| Method Detail |
|---|
public java.lang.String getName()
getName in interface DocumentScoreModifier
public boolean modifyScores(Index index,
MatchingQueryTerms query,
ResultSet resultSet)
modifyScores in interface DocumentScoreModifierindex - Index the data structures used for retrieval.query - TermTreeNode[] the array of the query terms.resultSet - ResultSet the set of retrieved documents.
public java.lang.Object clone()
clone in interface DocumentScoreModifierclone in class java.lang.Object
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||