From b43fac75b5e846e8ebb041e14af0513036763889 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Fri, 23 Oct 2020 18:14:54 +0200 Subject: [PATCH] docu --- src/site/markdown/engine/queries.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/site/markdown/engine/queries.md b/src/site/markdown/engine/queries.md index 593a502dd..6e6bff416 100644 --- a/src/site/markdown/engine/queries.md +++ b/src/site/markdown/engine/queries.md @@ -75,16 +75,23 @@ Range Queries allow to search for documents whose item values are between the lo Range Queries can be inclusive or exclusive of the upper and lower bounds. Sorting is done lexicographically. -### Query Date Ranges +### Query Date Time Ranges -To search for a date range, the date has to be formated inot +To search for a date range, the date has to be formated into YYYYMMDD The following example searches for documents created between 20020101 and 20030101, inclusive. $created:[20020101 TO 20030101] + +To search for a date time range use: + + YYYYMMDDThh:mm:ss +for example: + + $created:[20200101T00:00:00 TO 20201020T03:00:00] In java you can format a Date object into the lucene syntax with a Forater object: