Modifier and Type | Field and Description |
---|---|
static int |
MODEL_BOOLEAN
Description of the Field
|
static int |
MODEL_FUZZY_M
Description of the Field
|
static int |
MODEL_VECTOR
Description of the Field
|
Constructor and Description |
---|
Query()
Constructor for the Query 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 new Query object with the given CWI applied.
|
Runner |
attach(Rider r)
This method creates a binary form of this query.
|
Node |
explain(Document doc)
Print out this query in an XML format.
|
boolean |
getExcluded()
Gets the excluded attribute of the Query object
|
int |
getModel()
Gets the model attribute of the Query object
|
abstract String |
getNodeName()
Return the name of this query in an XML format produced by
explain(org.w3c.dom.Document) . |
boolean |
getProhibited()
Gets the prohibited attribute of the Query object
|
boolean |
getRequired()
Gets the required attribute of the Query object
|
boolean |
getUnknown()
Gets the unknown attribute of the Query object
|
boolean |
isContradictory()
By default, queries are contradictory, if they are excluded but required at the same time.
|
boolean |
isRequiredOrProhibited()
Test whether this query (without subparts) used prohibited or required
flags.
|
void |
setExcluded(boolean excluded)
Sets the excluded attribute of the Query object
|
void |
setModel(int model)
Sets the model attribute of the Query object
|
void |
setProhibited()
Require the entire query to not be present in a document for it to be
classified as a hit.
|
void |
setRequired()
Require the entire query to be present in a document for it to be
classified as a hit.
|
void |
setUnknown(boolean unknown)
Sets the unknown attribute of the Query object
|
public static final int MODEL_VECTOR
public static final int MODEL_FUZZY_M
public static final int MODEL_BOOLEAN
public boolean isContradictory()
public void setExcluded(boolean excluded)
excluded
- The new excluded valuepublic void setModel(int model)
model
- The new model valuepublic void setProhibited()
public void setRequired()
public void setUnknown(boolean unknown)
unknown
- The new unknown valuepublic boolean getExcluded()
public int getModel()
public abstract String getNodeName()
explain(org.w3c.dom.Document)
.public boolean getProhibited()
public boolean getRequired()
public boolean isRequiredOrProhibited()
public boolean getUnknown()
public Node explain(Document doc) throws DOMException
doc
- Description of the ParameterDOMException
- Description of the Exceptionpublic Runner attach(Rider r)
r
- the Riderpublic void addTerms(HashSet<Token> to)
to
- the HashSet collector of termsCopyright © 2016 Egothor. All Rights Reserved.