public class QNot extends Query
NOT
formula. The user has made
a query for documents containing termA, but NOT termB.MODEL_BOOLEAN, MODEL_FUZZY_M, MODEL_VECTOR
Constructor and Description |
---|
QNot(Query a,
Query b)
Constructor for the QNot object.
|
QNot(Query a,
Query b,
boolean required,
boolean prohibited)
Constructor for the QNot 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 QNot object with the given CWI applied to both sides of
the query.
|
Runner |
attach(Rider r)
Return an NotRunner which is the binary representation of this
clausula.
|
Node |
explain(Document doc)
Description of the Method
|
String |
getNodeName()
Gets the nodeName attribute of the QNot object
|
boolean |
isContradictory()
By default, queries are contradictory, if they are excluded but required at the same time.
|
void |
setModel(int model)
Sets the model attribute of the QNot object
|
String |
toString()
Return a string representation of this object.
|
getExcluded, getModel, getProhibited, getRequired, getUnknown, isRequiredOrProhibited, setExcluded, setProhibited, setRequired, setUnknown
public QNot(Query a, Query b)
a NOT b
.a
- the query to includeb
- the query to excludepublic QNot(Query a, Query b, boolean required, boolean prohibited)
a
- the query to includeb
- the query to excluderequired
- set to true if the entire query (both
items) are required for a hitprohibited
- set to true if the entire query (both
items) should not be in a hitpublic boolean isContradictory()
Query
isContradictory
in class Query
public void setModel(int model)
public String getNodeName()
getNodeName
in class Query
public Node explain(Document doc) throws DOMException
explain
in class Query
doc
- Description of the ParameterDOMException
- Description of the Exceptionpublic String toString()
public Runner attach(Rider r)
public void addTerms(HashSet<Token> to)
Query
Copyright © 2016 Egothor. All Rights Reserved.