58 template<
typename... SearchQuery>
61 or_else(std::forward<SearchQuery>(queries)...);
75 template<
typename... SearchQuery>
78 (disjuncts_.emplace_back(std::make_shared<SearchQuery>(std::move(queries))), ...);
94 min_ = number_of_queries;
104 [[nodiscard]]
auto encode() const -> encoded_search_query override;
107 std::vector<std::shared_ptr<
search_query>> disjuncts_{};
108 std::uint32_t min_{ 1 };
The disjunction query is a compound query.
Definition disjunction_query.hxx:47
auto min(std::uint32_t number_of_queries) -> disjunction_query &
Set the minimum number of child queries that must be satisfied for the disjunction query.
Definition disjunction_query.hxx:92
disjunction_query(SearchQuery &&... queries)
Create a disjunction query.
Definition disjunction_query.hxx:59
auto encode() const -> encoded_search_query override
auto or_else(SearchQuery... queries) -> disjunction_query &
Add one or more queries to add to the disjunction.
Definition disjunction_query.hxx:76
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