61 : match_phrase_{ std::move(match_phrase) }
78 analyzer_ = std::move(analyzer_name);
96 field_ = std::move(field_name);
106 [[nodiscard]]
auto encode() const -> encoded_search_query override;
109 std::
string match_phrase_;
110 std::optional<std::
string> analyzer_{};
111 std::optional<std::string> field_{};
The input text is analyzed and a phrase query is built with the terms resulting from the analysis.
Definition match_phrase_query.hxx:50
match_phrase_query(std::string match_phrase)
Create a new match phrase query.
Definition match_phrase_query.hxx:60
auto analyzer(std::string analyzer_name) -> match_phrase_query &
Analyzers are used to transform input text into a stream of tokens for indexing.
Definition match_phrase_query.hxx:76
auto field(std::string field_name) -> match_phrase_query &
If a field is specified, only terms in that field will be matched.
Definition match_phrase_query.hxx:94
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