77 must_ = std::move(
query);
92 template<
typename... SearchQuery>
113 return must_.value();
128 should_ = std::move(
query);
143 template<
typename... SearchQuery>
165 return should_.value();
180 must_not_ = std::move(
query);
195 template<
typename... SearchQuery>
216 return must_not_.value();
225 [[nodiscard]]
auto encode() const -> encoded_search_query override;
229 std::optional<disjunction_query> should_{};
230 std::optional<disjunction_query> must_not_{};
The boolean query is a useful combination of conjunction and disjunction queries.
Definition boolean_query.hxx:63
auto must(conjunction_query query) -> boolean_query &
Set conjunction_query that groups all queries the documents must satisfy.
Definition boolean_query.hxx:75
auto must_not(SearchQuery... queries) -> boolean_query &
Create disjunction_query with given queries and set it as must not query.
Definition boolean_query.hxx:196
auto must_not(disjunction_query query) -> boolean_query &
Set disjunction_query that groups queries the documents must not satisfy.
Definition boolean_query.hxx:178
auto encode() const -> encoded_search_query override
auto must() -> conjunction_query &
Returns conjunction_query that groups all queries the documents must satisfy.
Definition boolean_query.hxx:108
auto should(disjunction_query query) -> boolean_query &
Set disjunction_query that groups queries the documents should satisfy.
Definition boolean_query.hxx:126
auto should(SearchQuery... queries) -> boolean_query &
Create disjunction_query with given queries and set it as should query.
Definition boolean_query.hxx:144
auto should() -> disjunction_query &
Returns disjunction_query that groups queries the documents should satisfy.
Definition boolean_query.hxx:160
auto must(SearchQuery... queries) -> boolean_query &
Create conjunction_query with given queries and set it as must query.
Definition boolean_query.hxx:93
auto must_not() -> disjunction_query &
Returns disjunction_query that groups queries the documents should satisfy.
Definition boolean_query.hxx:211
The conjunction query is a compound query.
Definition conjunction_query.hxx:44
The disjunction query is a compound query.
Definition disjunction_query.hxx:47
Base class for full text search queries.
Definition search_query.hxx:33
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
@ query
The Query service (SQL++)