Updated Branches: refs/heads/master d098640a1 -> 4c6ef4dd4
Addind docs to for the data field type. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/4c6ef4dd Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/4c6ef4dd Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/4c6ef4dd Branch: refs/heads/master Commit: 4c6ef4dd47266e0f67f1ddde880e5edd92b41581 Parents: d098640 Author: Aaron McCurry <[email protected]> Authored: Mon Aug 26 21:40:19 2013 -0400 Committer: Aaron McCurry <[email protected]> Committed: Mon Aug 26 21:40:19 2013 -0400 ---------------------------------------------------------------------- docs/data-model.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/4c6ef4dd/docs/data-model.html ---------------------------------------------------------------------- diff --git a/docs/data-model.html b/docs/data-model.html index 1602f13..7c2da03 100644 --- a/docs/data-model.html +++ b/docs/data-model.html @@ -65,6 +65,7 @@ <li><a href="#text_query">Text</a></li> <li><a href="#string_query">String</a></li> <li><a href="#numeric_query">Numeric</a></li> + <li><a href="#date_query">Date</a></li> <li><a href="#spatial_query">Spatial</a></li> </ul> </li> @@ -77,6 +78,7 @@ <li><a href="#int_type">Integer</a></li> <li><a href="#float_type">Float</a></li> <li><a href="#double_type">Double</a></li> + <li><a href="#date_type">Date</a></li> <li><a href="#stored_type">Stored</a></li> <li><a href="#spatial_type">Spatial</a> <ul class="nav"> @@ -238,6 +240,27 @@ To run a query to find all the rows that contain a column with a value of " To run a query to find all the rows that contain a column with a starting value of "12345" and an ending values of "54321" where the family is "docs" and the column is "id". <pre><code class="json">docs.id:[12345 TO 54321]</code></pre> </p> + +<h3 id="date_query">Date</h3> +<p>Date types are basically a long field type with a date parser built-in. + +The date type can perform two types of queries: +<ul> +<li>Exact Match</li> +<li>Range</li> +</ul> +</p> + +<h4>Examples:</h4> +<p> +To run a query to find all the rows that contain a column with a value of "2012-09-11" where the family is "docs" and the column is "published_date". +<pre><code class="json">docs.published_date:2013-09-11</code></pre> +</p> +<p> +To run a query to find all the rows that contain a column with a starting value of "2012-09-11" and an ending values of "2013-09-11" where the family is "docs" and the column is "published_date". +<pre><code class="json">docs.published_date:[2012-09-11 TO 2013-09-11]</code></pre> +</p> + <h3 id="spatial_query">Spatial</h3> <p> Spatial queries are supported through the Lucene spatial module. There are currently three @@ -325,6 +348,18 @@ To run a query to find all the rows that contain a location within 10 miles of g <li>"numericPrecisionStep" -Optional- default value is "4"</li> </ul> </p> + <h3 id="date_type">Date</h3> + <p> + The Date Type has the type name of: + <pre><code class="json">date</code></pre> + <h5>Property Options:</h5> + <ul> + <li>"dateFormat" -Required- Examples: "yyyy-MM-dd", "MM/dd/yyyy" or anything that SimpleDateFormat can parse.</li> + <li>"timeUnit" -Optional- Default is SECONDS. Other options (DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS)</li> + <li>"numericPrecisionStep" -Optional- default value is "4"</li> + </ul> + </p> + <h3 id="stored_type">Stored</h3> <p> The Stored Type has the type name of:
