|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.query.Query org.egothor.query.QTerm
public class QTerm
The QTerm class represents a term. It is a special kind of a query. The QTerm object recognizes a String via a token which is defined in the Simple parser class.
Field Summary |
---|
Fields inherited from class org.egothor.core.query.Query |
---|
MODEL_BOOLEAN, MODEL_FUZZY_M, MODEL_VECTOR |
Constructor Summary | |
---|---|
QTerm(Token token,
java.lang.String field)
Constructor for the QTerm object. |
|
QTerm(Token token,
java.lang.String field,
double idf,
boolean req,
boolean proh,
int boost,
int lowerBound,
int upperBound)
Constructor for the QTerm object. |
Method Summary | |
---|---|
void |
addTerms(java.util.HashSet<Token> to)
Add the given HashSet of terms to this Query. |
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. |
org.w3c.dom.Node |
explain(org.w3c.dom.Document doc)
Description of the Method |
java.lang.String |
getNodeName()
Gets the nodeName attribute of the QTerm object |
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 |
java.lang.String |
toString()
Return a string representation of this object. |
Methods inherited from class org.egothor.core.query.Query |
---|
getExcluded, getModel, getProhibited, getRequired, getUnknown, isRequiredOrProhibited, setExcluded, setModel, setProhibited, setRequired, setUnknown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QTerm(Token token, java.lang.String field)
token
- the descriptive token of the termfield
- the query fieldpublic QTerm(Token token, java.lang.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 ParameterMethod Detail |
---|
public 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 java.lang.String getNodeName()
getNodeName
in class Query
public org.w3c.dom.Node explain(org.w3c.dom.Document doc) throws org.w3c.dom.DOMException
explain
in class Query
doc
- Description of the Parameter
org.w3c.dom.DOMException
- Description of the Exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
public Runner attach(Rider r)
attach
in class Query
r
- the Rider
public void addTerms(java.util.HashSet<Token> to)
addTerms
in class Query
to
- a HashSet containing the terms to be addedpublic Query applyCWI(CWI cwi)
applyCWI
in class Query
cwi
- the CWI
this
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |