mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-07 01:32:53 +00:00
Add a date range query example to QueryParser documentation
This commit is contained in:
@@ -157,7 +157,8 @@ fn trim_ast(logical_ast: LogicalAST) -> Option<LogicalAST> {
|
|||||||
/// a word lexicographically between `a` and `c` (inclusive lower bound, exclusive upper bound).
|
/// a word lexicographically between `a` and `c` (inclusive lower bound, exclusive upper bound).
|
||||||
/// Inclusive bounds are `[]`, exclusive are `{}`.
|
/// 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.
|
/// * all docs query: A plain `*` will match all documents in the index.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user