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.
|
List<Query> |
getQueries()
Get the list of queries in this "and".
|
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.