java.lang.Object | |
↳ | com.atlassian.confluence.search.v2.query.BooleanQuery |
A boolean query that allows and/or and not combinations of sub queries.
TODO: This SearchQuery implementation does not work with the QuerySerializer (or parser) since that mechanism relies on all parameters returned by getParameters having the same meaning; this is not currently true in this implementation.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new BooleanQuery encapsulating the supplied sub queries.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build an AND query from exactly two sub-queries.
| |||||||||||
Return a query that "ANDs" together a list of queries.
| |||||||||||
Create a query that is the OR of the two provided sub-queries
| |||||||||||
Return a query that "ORs" together a list of queries.
| |||||||||||
List of parameters as
String s or SearchQuery s. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.search.v2.SearchQuery
|
Construct a new BooleanQuery encapsulating the supplied sub queries. Either of the andQueries or the orQueries may be null but not both. You cannot have any notQueries without having at least one andQuery or orQuery.
must | the queries that must match. |
---|---|
should | the queries that may match. |
mustNot | the queries that must not match. |
IllegalArgumentException | if the parameters are not correct. |
---|
Build an AND query from exactly two sub-queries.
searchQueryOne | the first sub-query |
---|---|
searchQueryTwo | the second sub-query |
Return a query that "ANDs" together a list of queries. If the list contains no entries then
an AllQuery
is installed. If it contains only a single entry, then that
entry is returned. Otherwise a BooleanQuery combining the full list is returned.
subqueries | a list of SearchQuery s to combine. Must have size >= 1. |
---|
SearchQuery
combining the subqueries
.IllegalArgumentException | if the list of subqueries is empty. |
---|
Create a query that is the OR of the two provided sub-queries
searchQueryOne | the first query to OR |
---|---|
searchQueryTwo | the second query to OR |
Return a query that "ORs" together a list of queries. If the list contains no entries then
an AllQuery
is installed. If it contains only a single entry, then that
entry is returned. Otherwise a BooleanQuery combining the full list is returned.
subqueries | a list of SearchQuery s to combine. Must have size >= 1. |
---|
SearchQuery
combining the subqueries
.IllegalArgumentException | if the list of subqueries is empty. |
---|
List of parameters as String
s or SearchQuery
s.