The conjunction query is a compound query.
More...
#include <couchbase/conjunction_query.hxx>
|
template<typename... SearchQuery> |
| conjunction_query (SearchQuery &&... queries) |
| Create a conjunction query.
|
|
template<typename... SearchQuery> |
auto | and_also (SearchQuery... queries) -> conjunction_query & |
| Add one or more queries to add to the conjunction.
|
|
auto | encode () const -> encoded_search_query override |
|
virtual | ~search_query ()=default |
|
template<typename derived_query = search_query, std::enable_if_t< std::is_base_of_v< search_query, derived_query >, bool > = true> |
auto | boost (double boost) -> derived_query & |
| The boost parameter is used to increase the relative weight of a clause (with a boost greater than 1) or decrease the relative weight (with a boost between 0 and 1).
|
|
The conjunction query is a compound query.
The result documents must satisfy all of the child queries. It is possible to recursively nest compound queries.
At execution, a conjunction query that has no child queries is not allowed and will fail fast.
Match documents with "location"
in the field reviews.content
and true
in the field free_breakfast
.
- See also
- https://docs.couchbase.com/server/current/fts/fts-supported-queries-conjuncts-disjuncts.html server documentation
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ conjunction_query()
template<typename... SearchQuery>
Create a conjunction query.
- Template Parameters
-
- Parameters
-
queries | sequence of query arguments |
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ and_also()
template<typename... SearchQuery>
Add one or more queries to add to the conjunction.
- Template Parameters
-
- Parameters
-
queries | sequence of query arguments |
- Returns
- this query for chaining purposes.
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ encode()
auto encode |
( |
| ) |
const -> encoded_search_query |
|
nodiscardoverridevirtual |
- Returns
- encoded representation of the query.
- Since
- 1.0.0
- Internal
- Internal interface
Implements search_query.
The documentation for this class was generated from the following file: