From f58345f0f0c98df3ea7dccf1e57ab37ed6c4792d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rihards=20Kri=C5=A1lauks?= Date: Sun, 18 Apr 2021 22:13:02 +0300 Subject: [PATCH] Add a date range query example to QueryParser documentation --- src/query/query_parser/query_parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/query_parser/query_parser.rs b/src/query/query_parser/query_parser.rs index aaba3deda..a9e13c8af 100644 --- a/src/query/query_parser/query_parser.rs +++ b/src/query/query_parser/query_parser.rs @@ -157,7 +157,8 @@ fn trim_ast(logical_ast: LogicalAST) -> Option { /// a word lexicographically between `a` and `c` (inclusive lower bound, exclusive upper bound). /// Inclusive bounds are `[]`, exclusive are `{}`. /// -/// * date values: The query parser supports rfc3339 formatted dates. For example "2002-10-02T15:00:00.05Z" +/// * date values: The query parser supports rfc3339 formatted dates. For example `"2002-10-02T15:00:00.05Z"` +/// or `some_date_field:[2002-10-02T15:00:00Z TO 2002-10-02T18:00:00Z}` /// /// * all docs query: A plain `*` will match all documents in the index. ///