Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
protected boolean |
_ignoreEmptyQueries
If a query is empty should just ignore it, or return an empty AndQuery
|
protected List<Query> |
_queries
The list of queries.
|
Constructor and Description |
---|
AndQuery(boolean ignoreEmptyQueries,
Collection<Query> queries)
Build an AndQuery object.
|
AndQuery(boolean ignoreEmptyQueries,
Query... queries)
Build an AndQuery object.
|
AndQuery(Collection<Query> queries)
Build an AndQuery object.
|
AndQuery(Query... queries)
Build an AndQuery object.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
static Collector<Query,?,AndQuery> |
collector()
|
boolean |
equals(Object obj) |
List<Query> |
getQueries()
Get the list of queries in this "and".
|
int |
hashCode() |
String |
toString(int indent)
Gets a representation of this
Query , for pretty-printing for logging and debugging purposes |
protected boolean _ignoreEmptyQueries
public AndQuery(Query... queries)
queries
- the queries.public AndQuery(boolean ignoreEmptyQueries, Query... queries)
ignoreEmptyQueries
- If a query is empty should just ignore it, or return an empty AndQueryqueries
- the queries.public AndQuery(Collection<Query> queries)
queries
- the queries as a Collection.public AndQuery(boolean ignoreEmptyQueries, Collection<Query> queries)
ignoreEmptyQueries
- If a query is empty should just ignore it, or return an empty AndQueryqueries
- the queries as a Collection.public List<Query> getQueries()
public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.public String toString(int indent)
Query
Query
, for pretty-printing for logging and debugging purposes