Skip to content
Browse files

Added an example of date range query into "Numeric range queries" sec…

…tion
  • Loading branch information...
1 parent 1787de1 commit 9cc6edd70a77f775c6fb1e5948676c237da97a29 @karmi karmi committed Oct 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -357,7 +357,7 @@ In addition to normal text-based range searches (using the "field:[lower TO uppe
<tr><td>long</td><td>field&lt;long>:[0 TO 100]</td></tr>
<tr><td>float</td><td>field&lt;float>:[0.0 TO 100.0]</td></tr>
<tr><td>double</td><td>field&lt;double>:[0.0 TO 100.0]</td></tr>
-<tr><td>date</td><td>field&lt;date>:[from TO to] where from and to match any of these patterns: "yyyy-MM-dd'T'HH:mm:ssZ", "yyyy-MM-dd'T'HH:mm:ss", "yyyy-MM-ddZ", "yyyy-MM-dd", "yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS"</td></tr>
+<tr><td>date</td><td>field&lt;date>:[from TO to] where from and to match any of these patterns: "yyyy-MM-dd'T'HH:mm:ssZ", "yyyy-MM-dd'T'HH:mm:ss", "yyyy-MM-ddZ", "yyyy-MM-dd", "yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS". So, in order to search for articles published in July, you would issue a following query: <code>published_at&lt;date&gt;:["2010-07-01T00:00:00"+TO+"2010-07-31T23:59:59"]</code></td></tr>
</table>
An example numeric range query for spatial searching.

0 comments on commit 9cc6edd

Please sign in to comment.
Something went wrong with that request. Please try again.