48 : ids_{ std::move(ids) }
62 ids_.reserve(ids.size());
78 for (
const auto&
id : ids) {
106 [[nodiscard]]
auto encode() const -> encoded_search_query override;
109 std::vector<std::
string> ids_{};
A doc_id query is a query that directly matches the documents whose ID have been provided.
Definition doc_id_query.hxx:35
doc_id_query(std::initializer_list< std::string > ids)
Create a new doc_id query.
Definition doc_id_query.hxx:60
auto doc_id(const std::string &id) -> doc_id_query &
Add ID to the query.
Definition doc_id_query.hxx:94
doc_id_query(std::vector< std::string > ids)
Create a new doc_id query.
Definition doc_id_query.hxx:47
auto encode() const -> encoded_search_query override
auto doc_ids(const std::vector< std::string > &ids) -> doc_id_query &
Add IDs to the query.
Definition doc_id_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