118 start_ = std::move(value);
136 start_ = std::move(value);
137 inclusive_start_ = inclusive;
206 auto end(std::string value)
208 end_ = std::move(value);
226 end_ = std::move(value);
227 inclusive_end_ = inclusive;
243 date_time_parser_ = std::move(parser_name);
259 field_ = std::move(field_name);
269 [[nodiscard]]
auto encode() const -> encoded_search_query override;
272 std::optional<std::
string> start_{};
273 std::optional<std::string> end_{};
274 std::optional<bool> inclusive_start_{};
275 std::optional<bool> inclusive_end_{};
276 std::optional<std::string> date_time_parser_{};
277 std::optional<std::string> field_{};
The date range query finds documents containing a date value in the specified field within the specif...
Definition date_range_query.hxx:49
auto start(std::chrono::system_clock::time_point value) -> date_range_query &
Set lower limit and automatically format so that default date_time parser will be able to parse it on...
auto end(std::chrono::system_clock::time_point value) -> date_range_query &
Set upper limit and automatically format so that default date_time parser will be able to parse it on...
auto end(std::string value, bool inclusive) -> date_range_query &
Set preformatted date as upper limit.
Definition date_range_query.hxx:224
auto end(std::string value)
Set preformatted date as upper limit.
Definition date_range_query.hxx:206
auto end(std::chrono::system_clock::time_point value, bool inclusive) -> date_range_query &
Set upper limit and automatically format so that default date_time parser will be able to parse it on...
auto start(std::tm value, bool inclusive) -> date_range_query &
Set lower limit and automatically format so that default date_time parser will be able to parse it on...
auto field(std::string field_name) -> date_range_query &
If a field is specified, only terms in that field will be matched.
Definition date_range_query.hxx:257
auto encode() const -> encoded_search_query override
auto date_time_parser(std::string parser_name) -> date_range_query &
Enable custom date parser.
Definition date_range_query.hxx:241
auto end(std::tm value) -> date_range_query &
Set upper limit and automatically format so that default date_time parser will be able to parse it on...
auto start(std::string value, bool inclusive) -> date_range_query &
Set preformatted date as lower limit.
Definition date_range_query.hxx:134
auto start(std::tm value) -> date_range_query &
Set lower limit and automatically format so that default date_time parser will be able to parse it on...
auto start(std::chrono::system_clock::time_point value, bool inclusive) -> date_range_query &
Set lower limit and automatically format so that default date_time parser will be able to parse it on...
auto end(std::tm value, bool inclusive) -> date_range_query &
Set upper limit and automatically format so that default date_time parser will be able to parse it on...
auto start(std::string value) -> date_range_query &
Set preformatted date as lower limit.
Definition date_range_query.hxx:116
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