53 : prefix_{ std::move(prefix) }
69 field_ = std::move(field_name);
79 [[nodiscard]]
auto encode() const -> encoded_search_query override;
83 std::optional<std::
string> field_{};
The prefix query finds documents containing terms that start with the provided prefix.
Definition prefix_query.hxx:42
prefix_query(std::string prefix)
Create a new prefix query.
Definition prefix_query.hxx:52
auto field(std::string field_name) -> prefix_query &
If a field is specified, only terms in that field will be matched.
Definition prefix_query.hxx:67
auto encode() const -> encoded_search_query override
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