Skip to content

Commit

Permalink
docu
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Oct 23, 2020
1 parent bbcb79c commit b43fac7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/site/markdown/engine/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit b43fac7

Please sign in to comment.