incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Addind docs to for the data field type.
Date Tue, 27 Aug 2013 01:40:45 GMT
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 <amccurry@gmail.com>
Authored: Mon Aug 26 21:40:19 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
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 &quot;
 To run a query to find all the rows that contain a column with a starting value of &quot;12345&quot;
and an ending values of &quot;54321&quot; where the family is &quot;docs&quot;
and the column is &quot;id&quot;.
 <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 &quot;2012-09-11&quot;
where the family is &quot;docs&quot; and the column is &quot;published_date&quot;.
+<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 &quot;2012-09-11&quot;
and an ending values of &quot;2013-09-11&quot; where the family is &quot;docs&quot;
and the column is &quot;published_date&quot;.
+<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>&quot;numericPrecisionStep&quot; -Optional- default value
is &quot;4&quot;</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>&quot;dateFormat&quot; -Required- Examples: &quot;yyyy-MM-dd&quot;,
&quot;MM/dd/yyyy&quot; or anything that SimpleDateFormat can parse.</li>
+					  <li>&quot;timeUnit&quot; -Optional- Default is SECONDS.  Other options
(DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS)</li>
+				      <li>&quot;numericPrecisionStep&quot; -Optional- default value is
&quot;4&quot;</li>
+		              </ul>
+				  </p>
+ 
               <h3 id="stored_type">Stored</h3>
               <p>
               The Stored Type has the type name of:


Mime
View raw message