Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

README updates #85

Closed
wants to merge 3 commits into from

2 participants

@karmi

Hi Robert,

I've finally get around to put some of the doc changes into README. I've put some background info into the commit messages.

Karel

karmi added some commits
@karmi karmi Added another example of valid format for date string in `date` field…
… types

See commit `7f4e703cb02a309221981943da912803be2ef24e` which introduced the
freeform "January 6, 1972 16:05:00" format.

The "1972/1/6 16:05:00" format is presumably more compatible
with various platforms and easier to return from `strftime()`.
8909231
@karmi karmi Deleted extra quotes in date range example 1787de1
@karmi karmi Added an example of date range query into "Numeric range queries" sec…
…tion
9cc6edd
@rnewson
Owner

Applied. thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2010
  1. @karmi

    Added another example of valid format for date string in `date` field…

    karmi authored
    … types
    
    See commit `7f4e703cb02a309221981943da912803be2ef24e` which introduced the
    freeform "January 6, 1972 16:05:00" format.
    
    The "1972/1/6 16:05:00" format is presumably more compatible
    with various platforms and easier to return from `strftime()`.
  2. @karmi
  3. @karmi
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  README.md
View
3  README.md
@@ -208,6 +208,7 @@ doc.add("value");
doc.add(35, {"type":"int"});
// Add a date field.
+doc.add(new Date("1972/1/6 16:05:00"), {"type":"date"});
doc.add(new Date("January 6, 1972 16:05:00"), {"type":"date"});
// Add a date field (object must be a Date object
@@ -356,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.
Something went wrong with that request. Please try again.