public class DocumentTypeQuery extends Object implements Query
Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private boolean |
_positive
false to negate the query. |
private String |
_type
The document type.
|
Constructor and Description |
---|
DocumentTypeQuery(String type)
Build a document type query.
|
DocumentTypeQuery(String type,
boolean positiveQuery)
Build a document type query.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
int |
hashCode() |
private boolean _positive
false
to negate the query.public DocumentTypeQuery(String type)
type
- The document type to test.public DocumentTypeQuery(String type, boolean positiveQuery)
type
- The document type to test.positiveQuery
- false
to negate the query.public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.