public class QTerm extends Query
MODEL_BOOLEAN, MODEL_FUZZY_M, MODEL_VECTOR| Constructor and Description |
|---|
QTerm(Token token,
String field)
Constructor for the QTerm object.
|
QTerm(Token token,
String field,
double idf,
boolean req,
boolean proh,
int boost,
int lowerBound,
int upperBound)
Constructor for the QTerm object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTerms(HashSet<Token> to)
Adds all terms in this query into the given HashSet.
|
Query |
applyCWI(CWI cwi)
Return a QTerm object with the given CWI applied.
|
Runner |
attach(Rider r)
Return a TermRunner which is the binary representation of this
clausula.
|
Node |
explain(Document doc)
Description of the Method
|
String |
getNodeName()
Gets the nodeName attribute of the QTerm object
|
boolean |
isContradictory()
By default, queries are contradictory, if they are excluded but required at the same time.
|
void |
setBoostFactor(int boost)
Sets the boostFactor attribute of the QTerm object
|
void |
setLowerBound(int boundary)
Sets the lowerBound attribute of the QTerm object
|
void |
setUpperBound(int boundary)
Sets the upperBound attribute of the QTerm object
|
String |
toString()
Return a string representation of this object.
|
getExcluded, getModel, getProhibited, getRequired, getUnknown, isRequiredOrProhibited, setExcluded, setModel, setProhibited, setRequired, setUnknownpublic QTerm(Token token, String field)
token - the descriptive token of the termfield - the query fieldpublic QTerm(Token token, String field, double idf, boolean req, boolean proh, int boost, int lowerBound, int upperBound)
token - the tokenfield - in which field the token is (null=root field)idf - the inverse document frequencyreq - set to true if the term is required for
a hitproh - set to true if the term should not be
in a hitboost - Description of the ParameterlowerBound - Description of the ParameterupperBound - Description of the Parameterpublic boolean isContradictory()
QueryisContradictory in class Querypublic void setBoostFactor(int boost)
boost - The new boostFactor valuepublic void setLowerBound(int boundary)
boundary - The new lowerBound valuepublic void setUpperBound(int boundary)
boundary - The new upperBound valuepublic String getNodeName()
getNodeName in class Querypublic Node explain(Document doc) throws DOMException
explain in class Querydoc - Description of the ParameterDOMException - Description of the Exceptionpublic String toString()
public Runner attach(Rider r)
public void addTerms(HashSet<Token> to)
QueryCopyright © 2016 Egothor. All Rights Reserved.