public class BooleanScoreModifier extends Object implements DocumentScoreModifier, Serializable
| Modifier and Type | Field and Description | 
|---|---|
| protected static org.slf4j.Logger | loggerthe logger for this class | 
| protected ArrayList<Query> | termsThe 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 Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow