public class BooleanScoreModifier extends Object implements DocumentScoreModifier, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger
the logger for this class
|
protected ArrayList<Query> |
terms
The terms to check.
|
| Constructor and Description |
|---|
BooleanScoreModifier()
An empty default constructor.
|
BooleanScoreModifier(ArrayList<Query> ts)
A constructor where we specify which of the
query terms should exist in the documents.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone this DSM.
|
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.
|
public String getName()
getName in interface DocumentScoreModifierpublic 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 Object clone()
clone in interface DocumentScoreModifierclone in class ObjectTerrier 4.0. Copyright © 2004-2014 University of Glasgow