Skip to content

Commit 49ccc6c

Browse files
authored
Update range-query.asciidoc (#95822)
the example query for "date between today and yesterday" only returns documents from the day before if "lt" is used.
1 parent 154176b commit 49ccc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/query-dsl/range-query.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ GET /_search
154154
"range": {
155155
"timestamp": {
156156
"gte": "now-1d/d",
157-
"lt": "now/d"
157+
"lte": "now/d"
158158
}
159159
}
160160
}

0 commit comments

Comments
 (0)