http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2a55601f/content/docs/creating-new-application-admin-console/index.html
----------------------------------------------------------------------
diff --git a/content/docs/creating-new-application-admin-console/index.html 
b/content/docs/creating-new-application-admin-console/index.html
deleted file mode 100644
index e7b9bee..0000000
--- a/content/docs/creating-new-application-admin-console/index.html
+++ /dev/null
@@ -1,294 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-    <meta charset="utf-8">
-    <title>Apache Usergrid (incubating) — Creating a New Application with 
the Admin Console</title>
-    <meta http-equiv="x-ua-compatible" content="ie=edge" />
-    <meta name="viewport" content="width=device-width, initial-scale=1, 
minimum-scale=1, maximum-scale=1" />
-    <meta name="keywords" content="Apache Usergrid, Usergrid, BaaS, 
Backend-as-a-Service">
-    <meta name="description" content="An open-source Backend-as-a-Service 
stack for web & mobile applications, based on RESTful APIs." />
-    <meta property="og:title" content="Apache Usergrid" />
-    <meta property="og:description" content="An open-source 
Backend-as-a-Service stack for web & mobile applications, based on RESTful 
APIs." />
-    <!-- Loading Typekit -->
-    <script type="text/javascript" src="//use.typekit.net/ddl7izx.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-    <!-- Loading Bootstrap -->
-    <link href="/bootstrap/bootstrap.min.css" rel="stylesheet" type='text/css'>
-    <link href="/css/bootflat.css" rel="stylesheet" type='text/css'>
-    <link href="/css/usergrid-site.css" rel="stylesheet" type='text/css'>
-    <link 
href="https://fonts.googleapis.com/css?family=Open+Sans:200,400,500,300,600,800,700,400italic,600italic,700italic,800italic,300italic";
 rel="stylesheet" type="text/css">
-    <link href="/css/font-awesome.min.css" rel="stylesheet" type='text/css'>
-
-    
-
-    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the 
end of file. -->
-    <!--[if lt IE 9]>
-      <script src="js/html5shiv.js"></script>
-      <script src="js/respond.min.js"></script>
-    <![endif]-->
-</head>
-<body>
-
-    <header class="navbar navbar-inverse navbar-fixed-top bf-docs-nav 
secondary" role="banner">
-    <div class="container">
-        <div class="navbar-header">
-            <button class="navbar-toggle" type="button" data-toggle="collapse" 
data-target=".bf-navbar-collapse">
-                <span class="sr-only">Toggle navigation</span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-            </button>
-        </div>
-        <a href="/" class="navbar-brand">
-                <img id="home-logo" 
src="/img/apache_usergrid_logo_white_small.png" />
-            </a>
-        <nav class="collapse navbar-collapse bf-navbar-collapse" 
role="navigation">
-            <ul class="nav navbar-nav navbar-right">
-                <li class=""><a href="/community/"><span class="icns 
icon-group"></span></a></li>
-                <li><a href="http://usergrid.readthedocs.org/"; 
target="_blank"><span class="icns icon-book"></span></a></li>
-                <li><a href="http://github.com/apache/incubator-usergrid"; 
target="_blank"><span class="icns icon-github-sign"></span></a></li>
-                <!--<li><a href="https://trello.com/b/exQmJIOn/usergrid"; 
target="_blank"><span class="icns icon-trello"></span></a></li>-->
-                <li><a 
href="https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=23&view=planning&selectedIssue=USERGRID-362&epics=visible";
 target="_blank"><span class="icns icon-bug"></span></a></li>
-                <li><a href="http://stackoverflow.com/search?q=usergrid"; 
target="_blank"><span class="icns icon-stackexchange"></span></a></li>
-                <li><a href="/community/#live"><span class="icns 
icon-comments"></span></a></li>
-                <!--<li><a 
href="https://groups.google.com/forum/#!forum/usergrid"; target="_blank"><span 
class="icns icon-envelope"></span></a></li>-->
-                <li><a href="https://twitter.com/usergrid"; 
target="_blank"><span class="icns icon-twitter"></span></a></li>
-                <li><a 
href="https://cwiki.apache.org/confluence/display/usergrid/"; 
target="_blank"><span class="icns icon-wiki"></span></a></li>
-                <li><a href="/releases/"><span class="icns 
icon-releases"></span></a></li>
-            </ul>
-        </nav>
-    </div>
-    </header>
-
-
-
-<div class="container bf-docs-container">    
-    <div class="row">
-        <div class="col-md-3">
-            <div class="bf-sidebar hidden-print" role="complementary">
-                <ul class="nav nav-list">
-                    <li><a 
href="/docs/getting-up-and-running-locally/">Getting Up &amp; Running 
Locally</a></li>
-                    <li><a href="/docs/deploy-local/">Deploying to local 
Tomcat &amp; Cassandra</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/ugc#usergrid-command-line-ugc";><code>ugc</code>
 — the Command-line Client</a></li>
-
-                    <li class="nav-header"><span>Concepts</span></li>
-                    <li>
-                        <a href="/docs/organizations-admins/">Organizations & 
Admins</a>
-                        <ul>
-                            <li>
-                                <a href="/docs/applications/">Applications</a>
-                                <ul>
-                                    <li><a 
href="/docs/roles-and-permissions/">Roles & Permissions</a></li>
-                                    <!--<li><a href="#">Queues</a></li>-->
-                                    <li><a 
href="/docs/events-and-counters/">Events & Counters</a></li>
-                                    <li><a 
href="/docs/relationships/">Relationships (Joins)</a></li>
-                                    <li>
-                                        <a 
href="/docs/collections">Collections</a>
-                                        <ul>
-                                            <li><a 
href="/docs/query-language/">Query Language</a></li>
-                                            <li><a 
href="/docs/users-devices/">Users & Devices</a></li>
-                                            <li><a 
href="/docs/groups/">Groups</a></li>
-                                            <li><a 
href="/docs/activities/">Activities</a></li>
-                                            <li><a 
href="/docs/assets/">Assets</a></li>
-                                        </ul>
-                                    </li>
-                                </ul>
-                            </li>
-                        </ul>
-                    </li>
-
-
-                    <li class="nav-header"><span>Usage</span></li>
-                    <!-- <li>REST API — Coming Soon</li> -->
-                    <li><a class="icns-apple" 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/ios";>iOS 
SDK</a></li>
-                    <li><a class="icns-android" 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/android";>Android
 SDK</a></li>
-                    <li><a class="icns-html5" href="">HTML5 / JavaScript 
SDK</a></li>
-                    <li><a class="icns-windows" 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/dotnet";>Windows
 8 / Windows Phone / .net SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/nodejs";>Node.js
 module</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/ruby";>Ruby 
gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/ruby-on-rails";>Ruby
 on Rails gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/php";>PHP 
library</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/java";>Java 
library</a></li>
-
-                    <!--<li class="nav-header"><span>Internals</span></li>
-                    <li>Design & Goals — Coming Soon</li>
-                    <li>Java Architecture — Coming Soon</li>
-                    <li>Cassandra Schema — Coming Soon</li>-->
-
-                    <li class="nav-header"><span>Operations</span></li>
-                    <!--<li>Deploying — Coming Soon</li>-->
-                    <!-- <li>Monitoring — Coming Soon</li> -->
-                    <li><a href="/docs/upgrading/">Upgrading</a></li>
-                    <!-- <li>Security — Coming Soon</li> -->
-
-                    <li class="nav-header"><span>Presentations & 
Videos</span></li>
-                    <li><a href="/docs/presentations/">Presentations</a></li>
-                    <li><a href="/docs/videos/">Videos</a></li>
-
-                    <li class="nav-header"><span>We need your help!</span></li>
-                    <li><a href="/docs/contribute-code/">How to Contribute 
Code & Docs</a></li>
-                    <!--
-                    <li><a href="/docs/contribute-docs">How to contribute 
docs</a></li>
-                    -->
-                </ul>
-            </div>
-        </div>
-
-        <div class="col-md-9 main-article" role="main">
-            <div class="page-article">
-                <div class="page-header">
-                    <h1>Creating a New Application with the Admin Console</h1>
-                    <!-- TODO: reenable this when we sync SVN to GitHub
-                  <small><a target="_blank" 
href="https://github.com/usergrid/website/blob/master/content/docs/creating-new-application-admin-console.md";>contribute
 to this article on github</a></small>
-                    -->
-                </div>
-                <div class="toc">
-       <ul>
-<li>
-<a href="#creating-a-new-application-with-the-admin-console">Creating a New 
Application with the Admin Console</a><ul>
-<li><a href="#next-steps">Next Steps</a></li>
-</ul>
-</li>
-</ul>
-</div>
-<h1 id="creating-a-new-application-with-the-admin-console">Creating a New 
Application with the Admin Console</h1>
-<p>You can use the admin portal to create Apache Usergrid applications. An App 
Services application represents the data associated with your app. Through an 
application, you handle the entities associated with your app, including users, 
devices, events, and so on.</p>
-<blockquote>
-<p>For more about how data in Apache Usergrid fits together, see <a 
href="/app-services-data-model-1">App Services Data model</a>.</p>
-</blockquote>
-<p>Conceptually speaking, an application is like a database. You can create 
multiple applications within your Apache Usergrid organization. </p>
-<p> </p>
-<p>You’ll typically have one Apache Usergrid application for each of your 
apps. But you might want to create different applications representing sandbox, 
development, and production instances of your app.</p>
-<p>To create a new application with the admin console:</p>
-<ol style="list-style-type: decimal">
-<li>In the admin console, from the dropdown menu at the far top left, select 
the organization to which you will add the new application.</li>
-<li>Click the <strong>ADD NEW APP</strong> button, located at the top of the 
screen, next to the application drop-down.</li>
-<li>In the dialog box, enter a new application name, then click the 
<strong>Create</strong> button.</li>
-<li>Your new application will automatically be selected in the applications 
drop-down menu.</li>
-</ol>
-<h3 id="next-steps">Next Steps</h3>
-<p>After you’ve created a new application, finish up by thinking about the 
following:</p>
-<ul>
-<li>
-<p>Have you taken steps to make your application secure?</p>
-<p>If this is going to be a production application used by an app publicly, be 
sure to configure security roles that provide only the level of access your 
users will need. (You should never use a sandbox application as a public 
database. A sandbox is for experimenting with example data.)</p>
-<p>For more on security, see <a href="/securing-your-app">Securing your 
app</a>. For more about sandbox applications, see <a 
href="/using-sandbox-application">Using a Sandbox Application</a>.</p>
-</li>
-</ul>
-            </div>
-        </div>
-    </div>
-    <div class="row">
-        <div class="col-md-3"></div>
-        <div class="col-md-9">
-            <div class="github-callout">
-                <strong>Questions?</strong> Please do <a href="/community">ask 
on the mailing-lists</a>!<br/>
-                <!--
-                <strong>Found an error?</strong> We’d greatly appreciate a 
pull request about <a target="_blank" 
href="https://github.com/usergrid/website/blob/master/content/docs/creating-new-application-admin-console.md";>this
 article on github</a>.</div> 
-                -->
-            </div>
-        </div>
-    </div>
-</div>
-
-
-<footer class="bf-footer" role="contentinfo">
-    <div class="container">
-        <div class="row">
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header"><a href="/">Home</a></li>
-                    <li class="nav-header"><a 
href="/community/">Community</a></li>
-                        <li><a href="/community/#events">Events</a></li>
-                        <li><a href="/community/#mailing-lists">Mailing 
Lists</a></li>
-                        <li><a 
href="/community/#deployments">Deployments</a></li>
-                        <li><a href="/community/#committers">Commiters</a></li>
-                </ul>
-            </div>
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header"><a 
href="https://github.com/apache/incubator-usergrid/"; 
target="_blank">Code</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/stack"; 
target="_blank">Server Stack</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/portal"; 
target="_blank">Admin Portal</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/ugc"; 
target="_blank">ugc command line</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/ios"; 
target="_blank">iOS SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/android"; 
target="_blank">Android SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/html5-javascript";
 target="_blank">HTML5/JS SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/nodejs"; 
target="_blank">node.js module</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/ruby-on-rails";
 target="_blank">Ruby on Rails gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/ruby"; 
target="_blank">Ruby gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/php"; 
target="_blank">PHP SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/java"; 
target="_blank">Java SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/dotnet"; 
target="_blank">.NET / Windows SDK</a></li>
-                </ul>
-            </div>
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header">Resources</li>
-                    <li><a href="http://github.com/apache/incubator-usergrid"; 
target="_blank">GitHub Code</a></li>
-                    <li><a href="http://usergrid.readthedocs.org/"; 
target="_blank">Docs</a></li>
-                    <li><a 
href="https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=23&view=planning&selectedIssue=USERGRID-362&epics=visible";
 target="_blank">JIRA Bug Tracker</a></li>
-                    <li><a href="http://stackoverflow.com/search?q=usergrid"; 
target="_blank">StackOverflow</a></li>
-                    <li><a href="/community/#live">Live Chat</a></li>
-                    <li><a href="https://twitter.com/usergrid"; 
target="_blank">Twitter</a></li>
-                    <li><a 
href="http://incubator.apache.org/projects/usergrid.html"; 
target="_blank">Podling Listing</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/stack#requirements";
 target="_blank">Getting Started</a></li>
-                    <li><a 
href="https://cwiki.apache.org/confluence/display/usergrid/GitHub+Based+Contribution+Workflow";
 target="_blank">Contribution Guidelines</a></li>
-                </ul>
-            </div>
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header">Apache</li>
-                    <li><a href="http://www.apache.org/licenses/"; 
target="_blank">License</a></li>
-                    <li><a 
href="http://www.apache.org/foundation/sponsorship.html"; 
target="_blank">Sponsorship</a></li>
-                    <li><a href="http://www.apache.org/foundation/thanks.html"; 
target="_blank">Thanks</a></li>
-                    <li><a 
href="http://www.apache.org/security/";>Security</a></li>
-                    <li><a href="http://www.apache.org/"; 
target="_blank">Apache Foundation</a></li>
-                </ul>
-            </div>
-            <div class="col-md-4">
-                <a class="twitter-timeline" 
href="https://twitter.com/search?q=%23usergrid"; 
data-widget-id="401499136807038976"  data-related="usergrid" height="400px" 
style="overflow:hidden">Tweets about "usergrid"</a>
-                <script>!function(d,s,id){var 
js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
-            </div> 
-        <!--
-            <div class="col-md-4">
-                <div class="input-group form-search">
-                    <input type="text" class="form-control search-query">
-                    <span class="input-group-btn">
-                        <button type="submit" class="btn btn-primary" 
data-type="last">Search</button>
-                    </span>
-                </div>
-            </div> -->
-        </div> 
-        <div class="row">
-            <div id="copyright">
-                <img src="/img/egg-logo.png" /><br/><br/>
-                <p>Apache Usergrid is an effort undergoing incubation at The 
Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. 
Incubation is required of all newly accepted projects until a further review 
indicates that the infrastructure, communications, and decision making process 
have stabilized in a manner consistent with other successful ASF projects. 
While incubation status is not necessarily a reflection of the completeness or 
stability of the code, it does indicate that the project has yet to be fully 
endorsed by the ASF.</p>
-                <p>Copyright © 2013 The Apache Software Foundation, Licensed 
under the Apache License, Version 2.0.<br>
-                Apache and the Apache feather logos are trademarks of The 
Apache Software Foundation.</p>
-                <p class="credits">Site designed & assembled with love by <a 
href="https://github.com/ryuneeee";>@ryuneeee</a> + <a 
href="https://github.com/realbeast";>@realbeast</a> + <a 
href="https://twitter.com/timanglade";>@timanglade</a>.</p>
-            </div>
-        </div>
-    </div>
-</footer>
-
-<script type="text/javascript" src="/js/head.js"></script>
-<script type="text/javascript">
-    head.js("/js/jquery-1.10.1.min.js", "/js/bootstrap.min.js", 
"/js/usergrid-site.js");
-</script>
-<script>
-  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
-  
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-  ga('create', 'UA-45815079-1', 'apache.org');
-  ga('send', 'pageview');
-
-</script>
-
-
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2a55601f/content/docs/data-model/index.html
----------------------------------------------------------------------
diff --git a/content/docs/data-model/index.html 
b/content/docs/data-model/index.html
deleted file mode 100644
index 5ce65bb..0000000
--- a/content/docs/data-model/index.html
+++ /dev/null
@@ -1,362 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-    <meta charset="utf-8">
-    <title>Apache Usergrid (incubating) — Apache Usergrid Data model</title>
-    <meta http-equiv="x-ua-compatible" content="ie=edge" />
-    <meta name="viewport" content="width=device-width, initial-scale=1, 
minimum-scale=1, maximum-scale=1" />
-    <meta name="keywords" content="Apache Usergrid, Usergrid, BaaS, 
Backend-as-a-Service">
-    <meta name="description" content="An open-source Backend-as-a-Service 
stack for web & mobile applications, based on RESTful APIs." />
-    <meta property="og:title" content="Apache Usergrid" />
-    <meta property="og:description" content="An open-source 
Backend-as-a-Service stack for web & mobile applications, based on RESTful 
APIs." />
-    <!-- Loading Typekit -->
-    <script type="text/javascript" src="//use.typekit.net/ddl7izx.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-    <!-- Loading Bootstrap -->
-    <link href="/bootstrap/bootstrap.min.css" rel="stylesheet" type='text/css'>
-    <link href="/css/bootflat.css" rel="stylesheet" type='text/css'>
-    <link href="/css/usergrid-site.css" rel="stylesheet" type='text/css'>
-    <link 
href="https://fonts.googleapis.com/css?family=Open+Sans:200,400,500,300,600,800,700,400italic,600italic,700italic,800italic,300italic";
 rel="stylesheet" type="text/css">
-    <link href="/css/font-awesome.min.css" rel="stylesheet" type='text/css'>
-
-    
-
-    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the 
end of file. -->
-    <!--[if lt IE 9]>
-      <script src="js/html5shiv.js"></script>
-      <script src="js/respond.min.js"></script>
-    <![endif]-->
-</head>
-<body>
-
-    <header class="navbar navbar-inverse navbar-fixed-top bf-docs-nav 
secondary" role="banner">
-    <div class="container">
-        <div class="navbar-header">
-            <button class="navbar-toggle" type="button" data-toggle="collapse" 
data-target=".bf-navbar-collapse">
-                <span class="sr-only">Toggle navigation</span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-            </button>
-        </div>
-        <a href="/" class="navbar-brand">
-                <img id="home-logo" 
src="/img/apache_usergrid_logo_white_small.png" />
-            </a>
-        <nav class="collapse navbar-collapse bf-navbar-collapse" 
role="navigation">
-            <ul class="nav navbar-nav navbar-right">
-                <li class=""><a href="/community/"><span class="icns 
icon-group"></span></a></li>
-                <li><a href="http://usergrid.readthedocs.org/"; 
target="_blank"><span class="icns icon-book"></span></a></li>
-                <li><a href="http://github.com/apache/incubator-usergrid"; 
target="_blank"><span class="icns icon-github-sign"></span></a></li>
-                <!--<li><a href="https://trello.com/b/exQmJIOn/usergrid"; 
target="_blank"><span class="icns icon-trello"></span></a></li>-->
-                <li><a 
href="https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=23&view=planning&selectedIssue=USERGRID-362&epics=visible";
 target="_blank"><span class="icns icon-bug"></span></a></li>
-                <li><a href="http://stackoverflow.com/search?q=usergrid"; 
target="_blank"><span class="icns icon-stackexchange"></span></a></li>
-                <li><a href="/community/#live"><span class="icns 
icon-comments"></span></a></li>
-                <!--<li><a 
href="https://groups.google.com/forum/#!forum/usergrid"; target="_blank"><span 
class="icns icon-envelope"></span></a></li>-->
-                <li><a href="https://twitter.com/usergrid"; 
target="_blank"><span class="icns icon-twitter"></span></a></li>
-                <li><a 
href="https://cwiki.apache.org/confluence/display/usergrid/"; 
target="_blank"><span class="icns icon-wiki"></span></a></li>
-                <li><a href="/releases/"><span class="icns 
icon-releases"></span></a></li>
-            </ul>
-        </nav>
-    </div>
-    </header>
-
-
-
-<div class="container bf-docs-container">    
-    <div class="row">
-        <div class="col-md-3">
-            <div class="bf-sidebar hidden-print" role="complementary">
-                <ul class="nav nav-list">
-                    <li><a 
href="/docs/getting-up-and-running-locally/">Getting Up &amp; Running 
Locally</a></li>
-                    <li><a href="/docs/deploy-local/">Deploying to local 
Tomcat &amp; Cassandra</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/ugc#usergrid-command-line-ugc";><code>ugc</code>
 — the Command-line Client</a></li>
-
-                    <li class="nav-header"><span>Concepts</span></li>
-                    <li>
-                        <a href="/docs/organizations-admins/">Organizations & 
Admins</a>
-                        <ul>
-                            <li>
-                                <a href="/docs/applications/">Applications</a>
-                                <ul>
-                                    <li><a 
href="/docs/roles-and-permissions/">Roles & Permissions</a></li>
-                                    <!--<li><a href="#">Queues</a></li>-->
-                                    <li><a 
href="/docs/events-and-counters/">Events & Counters</a></li>
-                                    <li><a 
href="/docs/relationships/">Relationships (Joins)</a></li>
-                                    <li>
-                                        <a 
href="/docs/collections">Collections</a>
-                                        <ul>
-                                            <li><a 
href="/docs/query-language/">Query Language</a></li>
-                                            <li><a 
href="/docs/users-devices/">Users & Devices</a></li>
-                                            <li><a 
href="/docs/groups/">Groups</a></li>
-                                            <li><a 
href="/docs/activities/">Activities</a></li>
-                                            <li><a 
href="/docs/assets/">Assets</a></li>
-                                        </ul>
-                                    </li>
-                                </ul>
-                            </li>
-                        </ul>
-                    </li>
-
-
-                    <li class="nav-header"><span>Usage</span></li>
-                    <!-- <li>REST API — Coming Soon</li> -->
-                    <li><a class="icns-apple" 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/ios";>iOS 
SDK</a></li>
-                    <li><a class="icns-android" 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/android";>Android
 SDK</a></li>
-                    <li><a class="icns-html5" href="">HTML5 / JavaScript 
SDK</a></li>
-                    <li><a class="icns-windows" 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/dotnet";>Windows
 8 / Windows Phone / .net SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/nodejs";>Node.js
 module</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/ruby";>Ruby 
gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/ruby-on-rails";>Ruby
 on Rails gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/php";>PHP 
library</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/tree/master/sdks/java";>Java 
library</a></li>
-
-                    <!--<li class="nav-header"><span>Internals</span></li>
-                    <li>Design & Goals — Coming Soon</li>
-                    <li>Java Architecture — Coming Soon</li>
-                    <li>Cassandra Schema — Coming Soon</li>-->
-
-                    <li class="nav-header"><span>Operations</span></li>
-                    <!--<li>Deploying — Coming Soon</li>-->
-                    <!-- <li>Monitoring — Coming Soon</li> -->
-                    <li><a href="/docs/upgrading/">Upgrading</a></li>
-                    <!-- <li>Security — Coming Soon</li> -->
-
-                    <li class="nav-header"><span>Presentations & 
Videos</span></li>
-                    <li><a href="/docs/presentations/">Presentations</a></li>
-                    <li><a href="/docs/videos/">Videos</a></li>
-
-                    <li class="nav-header"><span>We need your help!</span></li>
-                    <li><a href="/docs/contribute-code/">How to Contribute 
Code & Docs</a></li>
-                    <!--
-                    <li><a href="/docs/contribute-docs">How to contribute 
docs</a></li>
-                    -->
-                </ul>
-            </div>
-        </div>
-
-        <div class="col-md-9 main-article" role="main">
-            <div class="page-article">
-                <div class="page-header">
-                    <h1>Apache Usergrid Data model</h1>
-                    <!-- TODO: reenable this when we sync SVN to GitHub
-                  <small><a target="_blank" 
href="https://github.com/usergrid/website/blob/master/content/docs/data-model.md";>contribute
 to this article on github</a></small>
-                    -->
-                </div>
-                <div class="toc">
-       <ul>
-<li>
-<a href="#apache-usergrid-data-model">Apache Usergrid Data model</a><ul>
-<li><a href="#organizations">Organizations</a></li>
-<li><a href="#applications">Applications</a></li>
-<li><a href="#collections">Collections</a></li>
-<li>
-<a href="#entities">Entities</a><ul>
-<li><a href="#default-entities">Default entities</a></li>
-</ul>
-</li>
-<li>
-<a href="#properties">Properties</a><ul>
-<li><a href="#default-properties">Default properties</a></li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</div>
-<h1 id="apache-usergrid-data-model">Apache Usergrid Data model</h1>
-<p>Apache Usergrid models the data for your apps as application-specific 
collections of data entities managed within an organization. The following is 
an overview of the component hierarchy that makes up the Apache Usergrid data 
model, and is intended to help you understand how data is stored, managed and 
accessed in Apache Usergrid.</p>
-<h2 id="organizations">Organizations</h2>
-<p>An <em>organization</em> contains one or more applications, and represents 
administrator-level access to Apache Usergrid. Multiple Apache Usergrid 
accounts may be given administrator access to an organization. App Services 
accounts can also be members of multiple organizations.</p>
-<p>An organization with the same name as your username is automatically 
created for you when you sign up for Apache Usergrid. By default, you are 
assigned as the administrator of this organization.</p>
-<h2 id="applications">Applications</h2>
-<p>In Apache Usergrid, you can create one or more <em>applications</em> within 
an organization. Applications represent an instance of application data 
associated with an app, and you may create as many applications as you wish. 
This allows you to utilize the Apache Usergrid backend in a way that 
corresponds to your development process. For example, you might create separate 
applications for development and production instances of your app. By default, 
all organization have a sandbox application (see <a 
href="/using-sandbox-application">Using a Sandbox Application</a> for important 
information regarding the default sandbox application).</p>
-<p>Each application provides the infrastructure for storing, retrieving, 
updating and deleting the entities and collections associated with a specific 
app instance.</p>
-<h2 id="collections">Collections</h2>
-<p>Apache Usergrid stores all data entities in uniquely-named 
<em>collections</em>. Collections are created automatically by Apache Usergrid 
for every entity type, including custom entities, and are named using the 
plural form of the entity type they store. For example, all user entities are 
stored in the /users collection, and all device entities in the /devices 
collection. An entity can belong to only one collection.</p>
-<p>Currently, collections cannot be renamed or deleted; however, all of the 
data entities in a collection can be updated or deleted.</p>
-<h2 id="entities">Entities</h2>
-<p>An <em>entity</em> represents a basic, JSON-formatted data object that is 
used by your app, such as a user, device, event or asset. Unlike records in 
conventional database tables, which have a very rigid schema that defines what 
they can store and how they can be related to each other, Apache Usergrid 
entities are very flexible. This makes Apache Usergrid a powerful solution for 
managing data for modern applications, where people, places, and content often 
need to be associated in a way that is most appropriate from a user 
perspective.</p>
-<p>Here is a simple example of an entity:</p>
-<pre><code>{
-  "uuid" : "5c0c1789-d503-11e1-b36a-12313b01d5c1",
-  "type" : "user",
-  "created" : 1343074620374,
-  "modified" : 1355442681264,
-  "username" : "john.doe",
-  "email" : "jdo...@mail.com",
-  "name" : "John Doe"
-}</code></pre>
-<h3 id="default-entities">Default entities</h3>
-<p>The following entity types are predefined in Apache Usergrid. For more 
details, see <a href="/default-data-entities">Default Data Entities</a>.</p>
-<ul>
-<li>user</li>
-<li>group</li>
-<li>role</li>
-<li>application</li>
-<li>activity</li>
-<li>device</li>
-<li>asset</li>
-<li>folder</li>
-<li>event</li>
-<li>notifier</li>
-<li>notification</li>
-<li>receipt</li>
-</ul>
-<h2 id="properties">Properties</h2>
-<p>A data entity is a set of <em>properties</em>, which can each contain any 
JSON-representable value, including a nested JSON document. All entities have 
predefined properties, but you are free to define any number of custom 
properties for any entity. Default properties require specific data types for 
validation purposes, while custom properties can be any JSON data type. Most 
predefined and all application-defined entity properties are indexed, allowing 
you to query collections quickly and easily.</p>
-<p>Individual or multiple properties can be updated in a single operation; 
however, partial updating of nested JSON documents is not supported. This means 
that all properties of a nested document must be provided in a PUT request for 
the update of the nested document to be processed, even if the some of the 
values have not changed.</p>
-<h3 id="default-properties">Default properties</h3>
-<p>At a minimum, each entity is defined by two properties, both of which are 
strings: type and UUID. The entity ‘type’ is the singular form of the 
collection the entity is stored in. For example, an entity in the ‘users’ 
collection has an entity type of ‘user’. The entity ‘UUID’ is an 
immutable universally unique identifier, which can be used to reference the 
entity. A UUID is automatically generated by Apache Usergrid for every entity 
when it is created. You can also create custom entities and entity properties; 
however, Apache Usergrid reserves certain entity types with pre-defined 
properties by default. For a complete list of reserved entities and properties, 
see <a href="/default-data-entities">Default Data Entities</a>.</p>
-<p>When you access the system via the API, you’ll always provide your 
organization UUID or name, application UUID or name, and typically the UUID or 
name of the entity you’re modifying or retrieving.</p>
-<p>All entities have the following default properties:</p>
-<table>
-<thead>
-<tr class="header">
-<th align="left">Property</th>
-<th align="left">Type</th>
-<th align="left">Description</th>
-</tr>
-</thead>
-<tbody>
-<tr class="odd">
-<td align="left">uuid</td>
-<td align="left">UUID</td>
-<td align="left">Entity unique id</td>
-</tr>
-<tr class="even">
-<td align="left">type</td>
-<td align="left">string</td>
-<td align="left">entity type (for example, user)</td>
-</tr>
-<tr class="odd">
-<td align="left">created</td>
-<td align="left">long</td>
-<td align="left">
-<a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time";>UTC 
timestamp</a> in milliseconds of when the entity was created</td>
-</tr>
-<tr class="even">
-<td align="left">modified</td>
-<td align="left">long</td>
-<td align="left">
-<a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time";>UTC 
timestamp</a> in milliseconds of when the entity was last modified</td>
-</tr>
-</tbody>
-</table>
-<p>Dynamic entities also have an optional name property that is a string 
identifier.</p>
-            </div>
-        </div>
-    </div>
-    <div class="row">
-        <div class="col-md-3"></div>
-        <div class="col-md-9">
-            <div class="github-callout">
-                <strong>Questions?</strong> Please do <a href="/community">ask 
on the mailing-lists</a>!<br/>
-                <!--
-                <strong>Found an error?</strong> We’d greatly appreciate a 
pull request about <a target="_blank" 
href="https://github.com/usergrid/website/blob/master/content/docs/data-model.md";>this
 article on github</a>.</div> 
-                -->
-            </div>
-        </div>
-    </div>
-</div>
-
-
-<footer class="bf-footer" role="contentinfo">
-    <div class="container">
-        <div class="row">
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header"><a href="/">Home</a></li>
-                    <li class="nav-header"><a 
href="/community/">Community</a></li>
-                        <li><a href="/community/#events">Events</a></li>
-                        <li><a href="/community/#mailing-lists">Mailing 
Lists</a></li>
-                        <li><a 
href="/community/#deployments">Deployments</a></li>
-                        <li><a href="/community/#committers">Commiters</a></li>
-                </ul>
-            </div>
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header"><a 
href="https://github.com/apache/incubator-usergrid/"; 
target="_blank">Code</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/stack"; 
target="_blank">Server Stack</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/portal"; 
target="_blank">Admin Portal</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/ugc"; 
target="_blank">ugc command line</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/ios"; 
target="_blank">iOS SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/android"; 
target="_blank">Android SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/html5-javascript";
 target="_blank">HTML5/JS SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/nodejs"; 
target="_blank">node.js module</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/ruby-on-rails";
 target="_blank">Ruby on Rails gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/ruby"; 
target="_blank">Ruby gem</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/php"; 
target="_blank">PHP SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/java"; 
target="_blank">Java SDK</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/sdks/dotnet"; 
target="_blank">.NET / Windows SDK</a></li>
-                </ul>
-            </div>
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header">Resources</li>
-                    <li><a href="http://github.com/apache/incubator-usergrid"; 
target="_blank">GitHub Code</a></li>
-                    <li><a href="http://usergrid.readthedocs.org/"; 
target="_blank">Docs</a></li>
-                    <li><a 
href="https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=23&view=planning&selectedIssue=USERGRID-362&epics=visible";
 target="_blank">JIRA Bug Tracker</a></li>
-                    <li><a href="http://stackoverflow.com/search?q=usergrid"; 
target="_blank">StackOverflow</a></li>
-                    <li><a href="/community/#live">Live Chat</a></li>
-                    <li><a href="https://twitter.com/usergrid"; 
target="_blank">Twitter</a></li>
-                    <li><a 
href="http://incubator.apache.org/projects/usergrid.html"; 
target="_blank">Podling Listing</a></li>
-                    <li><a 
href="https://github.com/apache/incubator-usergrid/blob/master/stack#requirements";
 target="_blank">Getting Started</a></li>
-                    <li><a 
href="https://cwiki.apache.org/confluence/display/usergrid/GitHub+Based+Contribution+Workflow";
 target="_blank">Contribution Guidelines</a></li>
-                </ul>
-            </div>
-            <div class="col-md-2">
-                <ul class="nav nav-list">
-                    <li class="nav-header">Apache</li>
-                    <li><a href="http://www.apache.org/licenses/"; 
target="_blank">License</a></li>
-                    <li><a 
href="http://www.apache.org/foundation/sponsorship.html"; 
target="_blank">Sponsorship</a></li>
-                    <li><a href="http://www.apache.org/foundation/thanks.html"; 
target="_blank">Thanks</a></li>
-                    <li><a 
href="http://www.apache.org/security/";>Security</a></li>
-                    <li><a href="http://www.apache.org/"; 
target="_blank">Apache Foundation</a></li>
-                </ul>
-            </div>
-            <div class="col-md-4">
-                <a class="twitter-timeline" 
href="https://twitter.com/search?q=%23usergrid"; 
data-widget-id="401499136807038976"  data-related="usergrid" height="400px" 
style="overflow:hidden">Tweets about "usergrid"</a>
-                <script>!function(d,s,id){var 
js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
-            </div> 
-        <!--
-            <div class="col-md-4">
-                <div class="input-group form-search">
-                    <input type="text" class="form-control search-query">
-                    <span class="input-group-btn">
-                        <button type="submit" class="btn btn-primary" 
data-type="last">Search</button>
-                    </span>
-                </div>
-            </div> -->
-        </div> 
-        <div class="row">
-            <div id="copyright">
-                <img src="/img/egg-logo.png" /><br/><br/>
-                <p>Apache Usergrid is an effort undergoing incubation at The 
Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. 
Incubation is required of all newly accepted projects until a further review 
indicates that the infrastructure, communications, and decision making process 
have stabilized in a manner consistent with other successful ASF projects. 
While incubation status is not necessarily a reflection of the completeness or 
stability of the code, it does indicate that the project has yet to be fully 
endorsed by the ASF.</p>
-                <p>Copyright © 2013 The Apache Software Foundation, Licensed 
under the Apache License, Version 2.0.<br>
-                Apache and the Apache feather logos are trademarks of The 
Apache Software Foundation.</p>
-                <p class="credits">Site designed & assembled with love by <a 
href="https://github.com/ryuneeee";>@ryuneeee</a> + <a 
href="https://github.com/realbeast";>@realbeast</a> + <a 
href="https://twitter.com/timanglade";>@timanglade</a>.</p>
-            </div>
-        </div>
-    </div>
-</footer>
-
-<script type="text/javascript" src="/js/head.js"></script>
-<script type="text/javascript">
-    head.js("/js/jquery-1.10.1.min.js", "/js/bootstrap.min.js", 
"/js/usergrid-site.js");
-</script>
-<script>
-  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
-  
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-  ga('create', 'UA-45815079-1', 'apache.org');
-  ga('send', 'pageview');
-
-</script>
-
-
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2a55601f/content/docs/data-queries/advanced-query-usage.html
----------------------------------------------------------------------
diff --git a/content/docs/data-queries/advanced-query-usage.html 
b/content/docs/data-queries/advanced-query-usage.html
new file mode 100644
index 0000000..7c1bfc1
--- /dev/null
+++ b/content/docs/data-queries/advanced-query-usage.html
@@ -0,0 +1,321 @@
+
+
+<!DOCTYPE html>
+<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
+<head>
+  <meta charset="utf-8">
+  
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  
+  <title>Advanced query usage &mdash; Apache Usergrid 1.0 documentation</title>
+  
+
+  
+  
+
+  
+
+  
+  
+    
+
+  
+
+  
+  
+    <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
+  
+
+  
+
+  
+    <link rel="top" title="Apache Usergrid 1.0 documentation" 
href="../index.html"/>
+        <link rel="next" title="Connecting entities" 
href="../entity-connections/connecting-entities.html"/>
+        <link rel="prev" title="Query operators &amp; data types" 
href="operators-and-types.html"/> 
+
+  
+  <script src="../_static/js/modernizr.min.js"></script>
+
+</head>
+
+<body class="wy-body-for-nav" role="document">
+
+  <div class="wy-grid-for-nav">
+
+    
+    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
+      <div class="wy-side-nav-search">
+        
+
+        
+          <a href="../index.html" class="icon icon-home"> Apache Usergrid
+        
+
+        
+        </a>
+
+        
+          
+          
+            <div class="version">
+              1.0
+            </div>
+          
+        
+
+        
+<div role="search">
+  <form id="rtd-search-form" class="wy-form" action="../search.html" 
method="get">
+    <input type="text" name="q" placeholder="Search docs" />
+    <input type="hidden" name="check_keywords" value="yes" />
+    <input type="hidden" name="area" value="default" />
+  </form>
+</div>
+
+        
+      </div>
+
+      <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" 
aria-label="main navigation">
+        
+          
+          
+              <p class="caption"><span 
class="caption-text">Introduction</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../introduction/usergrid-features.html">Usergrid Features</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../introduction/data-model.html">Usergrid Data model</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../introduction/async-vs-sync.html">Async vs. sync calls</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Getting Started</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/creating-a-new-application.html">Creating a new 
application</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/creating-account.html">Creating an Usergrid 
Account</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/using-a-sandbox-app.html">Using a Sandbox 
Application</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/using-the-api.html">Using the API</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Data Storage</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/data-store-dbms.html">The Usergrid Data Store</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/optimizing-access.html">Data Store Best Practices</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/collections.html">Collections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/entities.html">Entities</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Data Queries</span></p>
+<ul class="current">
+<li class="toctree-l1"><a class="reference internal" 
href="querying-your-data.html">Querying your data</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="query-parameters.html">Query parameters &amp; clauses</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="operators-and-types.html">Query operators &amp; data types</a></li>
+<li class="toctree-l1 current"><a class="current reference internal" 
href="">Advanced query usage</a><ul>
+<li class="toctree-l2"><a class="reference internal" 
href="#attaching-a-query-to-all-api-calls">Attaching a query to all API 
calls</a></li>
+</ul>
+</li>
+</ul>
+<p class="caption"><span class="caption-text">Entity Connections</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../entity-connections/connecting-entities.html">Connecting 
entities</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../entity-connections/retrieving-entities.html">Retrieving 
connections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../entity-connections/disconnecting-entities.html">Disconnecting 
entities</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Security &amp; 
Authentication</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/app-security.html">Security &amp; token 
authentication</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/using-permissions.html">Using permissions</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/authenticating-users-and-application-clients.html">Authenticating
 users &amp; app clients</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/user-authentication-types.html">Authentication 
levels</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/changing-token-time-live-ttl.html">Changing token 
expiration (time-to-live)</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/authenticating-api-requests.html">Authenticating API 
requests</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/revoking-tokens-logout.html">Revoking tokens 
(logout)</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/facebook-sign.html">Facebook sign in</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/securing-your-app.html">Security best 
practices</a></li>
+</ul>
+<p class="caption"><span class="caption-text">User Management &amp; Social 
Graph</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/user-management.html">User management &amp; social 
graph</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/working-user-data.html">Working with User Data</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/group.html">Working with group data</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/activity.html">Activity</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/user-connections.html">Social Graph 
Connections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/user-connections.html#creating-other-connections">Creating
 other connections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/messagee-example.html">App Example - Messagee</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Geo-location</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../geolocation/geolocation.html">Geolocating your Entities</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Assets &amp; Files</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../asset-and-files/uploading-assets.html">Uploading assets</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../asset-and-files/retrieving-assets.html">Retrieving assets</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../asset-and-files/folders.html">Folders</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Counters &amp; Events</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/events-and-counters.html">Counters &amp; 
events</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/creating-and-incrementing-counters.html">Creating 
&amp; incrementing counters</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/creating-and-incrementing-counters.html#decrementing-resetting-counters">Decrementing/resetting
 counters</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/creating-and-incrementing-counters.html#using-counters-hierarchically">Using
 counters hierarchically</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/retrieving-counters.html">Retrieving 
counters</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Organizations &amp; 
Applications</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../orgs-and-apps/managing.html">Organization &amp; application 
management</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../orgs-and-apps/organization.html">Organization</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../orgs-and-apps/application.html">Application</a></li>
+</ul>
+<p class="caption"><span class="caption-text">API Reference</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../rest-endpoints/api-docs.html">Methods</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../rest-endpoints/api-docs.html#models">Models</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Client SDKs</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../sdks/tbd.html">COMING SOON...</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Installing the Stack</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../installation/ug1-deploy-to-tomcat.html">Usegrid 1: Deploying to 
Tomcat</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../installation/ug1-launcher-quick-start.html">Usegrid 1: Launcher 
Quick-start</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../installation/ug2-deploy-to-tomcat.html">Usergrid 2: Deploy to 
Tomcat</a></li>
+</ul>
+<p class="caption"><span class="caption-text">More about Usergrid</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../reference/presos-and-videos.html">Presentations &amp; Videos</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../reference/contribute-code.html">How to Contribute Code &amp; 
Docs</a></li>
+</ul>
+
+          
+        
+      </div>
+      &nbsp;
+    </nav>
+
+    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
+
+      
+      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
+        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+        <a href="../index.html">Apache Usergrid</a>
+      </nav>
+
+
+      
+      <div class="wy-nav-content">
+        <div class="rst-content">
+          <div role="navigation" aria-label="breadcrumbs navigation">
+  <ul class="wy-breadcrumbs">
+    <li><a href="../index.html">Docs</a> &raquo;</li>
+      
+    <li>Advanced query usage</li>
+      <li class="wy-breadcrumbs-aside">
+        
+          
+            <a href="../_sources/data-queries/advanced-query-usage.txt" 
rel="nofollow"> View page source</a>
+          
+        
+      </li>
+  </ul>
+  <hr/>
+</div>
+          <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
+           <div itemprop="articleBody">
+            
+  <div class="section" id="advanced-query-usage">
+<h1>Advanced query usage<a class="headerlink" href="#advanced-query-usage" 
title="Permalink to this headline">¶</a></h1>
+<div class="admonition note"> <p class="first admonition-title"><p>Note</p>
+  </p> <p class="last">
+
+
+Query examples in this content are shown unencoded to make them easier<p>to 
read. Keep in mind that you might need to encode query strings if
+you&#8217;re sending them as part of URLs, such as when you&#8217;re executing 
them
+with the cURL tool.</p>
+</p></div><div class="section" id="attaching-a-query-to-all-api-calls">
+<h2>Attaching a query to all API calls<a class="headerlink" 
href="#attaching-a-query-to-all-api-calls" title="Permalink to this 
headline">¶</a></h2>
+<div class="admonition note"> <p class="first admonition-title"><p>Note</p>
+</p> <p class="last"><p><p>JavaScript SDK only.</p>
+</p><p>In some cases, it may be convenient to attach a query or other URI
+parameter to every call you make to Usergrid, such as a custom
+identifier or token. To do this with the Usergrid JavaScript SDK, add a
+qs property to your Usergrid.Client object when you initialize the SDK.
+For more on initializing the SDK, see our install guide.</p>
+</p></div><p>For example, the following would append ?custom_id=1234 to every 
call
+sent from the Usergrid JavaScript SDK to Usergrid:</p>
+<div class="highlight-python"><div class="highlight"><pre>var options = {
+    orgName:&#39;yourOrg&#39;,
+    appName:&#39;yourApp&#39;,
+    qs:&#39;custom_id=1234&#39;
+}
+var dataClient = new Usergrid.Client(options);
+</pre></div>
+</div>
+</div>
+</div>
+
+
+           </div>
+          </div>
+          <footer>
+  
+    <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
+      
+        <a href="../entity-connections/connecting-entities.html" class="btn 
btn-neutral float-right" title="Connecting entities" accesskey="n">Next <span 
class="fa fa-arrow-circle-right"></span></a>
+      
+      
+        <a href="operators-and-types.html" class="btn btn-neutral" 
title="Query operators &amp; data types" accesskey="p"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
+      
+    </div>
+  
+
+  <hr/>
+
+  <div role="contentinfo">
+    <p>
+        &copy; Copyright 2013-2015, Apache Usergrid.
+
+    </p>
+  </div>
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>.
+
+</footer>
+
+        </div>
+      </div>
+
+    </section>
+
+  </div>
+  
+
+
+  
+
+    <script type="text/javascript">
+        var DOCUMENTATION_OPTIONS = {
+            URL_ROOT:'../',
+            VERSION:'1.0',
+            COLLAPSE_INDEX:false,
+            FILE_SUFFIX:'.html',
+            HAS_SOURCE:  true
+        };
+    </script>
+      <script type="text/javascript" src="../_static/jquery.js"></script>
+      <script type="text/javascript" src="../_static/underscore.js"></script>
+      <script type="text/javascript" src="../_static/doctools.js"></script>
+
+  
+
+  
+  
+    <script type="text/javascript" src="../_static/js/theme.js"></script>
+  
+
+  
+  
+  <script type="text/javascript">
+      jQuery(function () {
+          SphinxRtdTheme.StickyNav.enable();
+      });
+  </script>
+   
+
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2a55601f/content/docs/data-queries/operators-and-types.html
----------------------------------------------------------------------
diff --git a/content/docs/data-queries/operators-and-types.html 
b/content/docs/data-queries/operators-and-types.html
new file mode 100644
index 0000000..f021697
--- /dev/null
+++ b/content/docs/data-queries/operators-and-types.html
@@ -0,0 +1,461 @@
+
+
+<!DOCTYPE html>
+<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
+<head>
+  <meta charset="utf-8">
+  
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  
+  <title>Query operators &amp; data types &mdash; Apache Usergrid 1.0 
documentation</title>
+  
+
+  
+  
+
+  
+
+  
+  
+    
+
+  
+
+  
+  
+    <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
+  
+
+  
+
+  
+    <link rel="top" title="Apache Usergrid 1.0 documentation" 
href="../index.html"/>
+        <link rel="next" title="Advanced query usage" 
href="advanced-query-usage.html"/>
+        <link rel="prev" title="Query parameters &amp; clauses" 
href="query-parameters.html"/> 
+
+  
+  <script src="../_static/js/modernizr.min.js"></script>
+
+</head>
+
+<body class="wy-body-for-nav" role="document">
+
+  <div class="wy-grid-for-nav">
+
+    
+    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
+      <div class="wy-side-nav-search">
+        
+
+        
+          <a href="../index.html" class="icon icon-home"> Apache Usergrid
+        
+
+        
+        </a>
+
+        
+          
+          
+            <div class="version">
+              1.0
+            </div>
+          
+        
+
+        
+<div role="search">
+  <form id="rtd-search-form" class="wy-form" action="../search.html" 
method="get">
+    <input type="text" name="q" placeholder="Search docs" />
+    <input type="hidden" name="check_keywords" value="yes" />
+    <input type="hidden" name="area" value="default" />
+  </form>
+</div>
+
+        
+      </div>
+
+      <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" 
aria-label="main navigation">
+        
+          
+          
+              <p class="caption"><span 
class="caption-text">Introduction</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../introduction/usergrid-features.html">Usergrid Features</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../introduction/data-model.html">Usergrid Data model</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../introduction/async-vs-sync.html">Async vs. sync calls</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Getting Started</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/creating-a-new-application.html">Creating a new 
application</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/creating-account.html">Creating an Usergrid 
Account</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/using-a-sandbox-app.html">Using a Sandbox 
Application</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../getting-started/using-the-api.html">Using the API</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Data Storage</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/data-store-dbms.html">The Usergrid Data Store</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/optimizing-access.html">Data Store Best Practices</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/collections.html">Collections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../data-storage/entities.html">Entities</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Data Queries</span></p>
+<ul class="current">
+<li class="toctree-l1"><a class="reference internal" 
href="querying-your-data.html">Querying your data</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="query-parameters.html">Query parameters &amp; clauses</a></li>
+<li class="toctree-l1 current"><a class="current reference internal" 
href="">Query operators &amp; data types</a><ul>
+<li class="toctree-l2"><a class="reference internal" 
href="#operators">Operators</a></li>
+<li class="toctree-l2"><a class="reference internal" href="#data-types">Data 
types</a></li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal" 
href="advanced-query-usage.html">Advanced query usage</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Entity Connections</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../entity-connections/connecting-entities.html">Connecting 
entities</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../entity-connections/retrieving-entities.html">Retrieving 
connections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../entity-connections/disconnecting-entities.html">Disconnecting 
entities</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Security &amp; 
Authentication</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/app-security.html">Security &amp; token 
authentication</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/using-permissions.html">Using permissions</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/authenticating-users-and-application-clients.html">Authenticating
 users &amp; app clients</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/user-authentication-types.html">Authentication 
levels</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/changing-token-time-live-ttl.html">Changing token 
expiration (time-to-live)</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/authenticating-api-requests.html">Authenticating API 
requests</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/revoking-tokens-logout.html">Revoking tokens 
(logout)</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/facebook-sign.html">Facebook sign in</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../security-and-auth/securing-your-app.html">Security best 
practices</a></li>
+</ul>
+<p class="caption"><span class="caption-text">User Management &amp; Social 
Graph</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/user-management.html">User management &amp; social 
graph</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/working-user-data.html">Working with User Data</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/group.html">Working with group data</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/activity.html">Activity</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/user-connections.html">Social Graph 
Connections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/user-connections.html#creating-other-connections">Creating
 other connections</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../user-management/messagee-example.html">App Example - Messagee</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Geo-location</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../geolocation/geolocation.html">Geolocating your Entities</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Assets &amp; Files</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../asset-and-files/uploading-assets.html">Uploading assets</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../asset-and-files/retrieving-assets.html">Retrieving assets</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../asset-and-files/folders.html">Folders</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Counters &amp; Events</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/events-and-counters.html">Counters &amp; 
events</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/creating-and-incrementing-counters.html">Creating 
&amp; incrementing counters</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/creating-and-incrementing-counters.html#decrementing-resetting-counters">Decrementing/resetting
 counters</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/creating-and-incrementing-counters.html#using-counters-hierarchically">Using
 counters hierarchically</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../counters-and-events/retrieving-counters.html">Retrieving 
counters</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Organizations &amp; 
Applications</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../orgs-and-apps/managing.html">Organization &amp; application 
management</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../orgs-and-apps/organization.html">Organization</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../orgs-and-apps/application.html">Application</a></li>
+</ul>
+<p class="caption"><span class="caption-text">API Reference</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../rest-endpoints/api-docs.html">Methods</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../rest-endpoints/api-docs.html#models">Models</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Client SDKs</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../sdks/tbd.html">COMING SOON...</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Installing the Stack</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../installation/ug1-deploy-to-tomcat.html">Usegrid 1: Deploying to 
Tomcat</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../installation/ug1-launcher-quick-start.html">Usegrid 1: Launcher 
Quick-start</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../installation/ug2-deploy-to-tomcat.html">Usergrid 2: Deploy to 
Tomcat</a></li>
+</ul>
+<p class="caption"><span class="caption-text">More about Usergrid</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../reference/presos-and-videos.html">Presentations &amp; Videos</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../reference/contribute-code.html">How to Contribute Code &amp; 
Docs</a></li>
+</ul>
+
+          
+        
+      </div>
+      &nbsp;
+    </nav>
+
+    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
+
+      
+      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
+        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+        <a href="../index.html">Apache Usergrid</a>
+      </nav>
+
+
+      
+      <div class="wy-nav-content">
+        <div class="rst-content">
+          <div role="navigation" aria-label="breadcrumbs navigation">
+  <ul class="wy-breadcrumbs">
+    <li><a href="../index.html">Docs</a> &raquo;</li>
+      
+    <li>Query operators &amp; data types</li>
+      <li class="wy-breadcrumbs-aside">
+        
+          
+            <a href="../_sources/data-queries/operators-and-types.txt" 
rel="nofollow"> View page source</a>
+          
+        
+      </li>
+  </ul>
+  <hr/>
+</div>
+          <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
+           <div itemprop="articleBody">
+            
+  <div class="section" id="query-operators-data-types">
+<h1>Query operators &amp; data types<a class="headerlink" 
href="#query-operators-data-types" title="Permalink to this 
headline">¶</a></h1>
+<p>The following operators and data types are supported by the SQL-like
+query language in Usergrid.</p>
+<div class="section" id="operators">
+<h2>Operators<a class="headerlink" href="#operators" title="Permalink to this 
headline">¶</a></h2>
+<table class="usergrid-table">
+    <tr>
+        <td><p>Operator</p>
+</td>
+        <td><p>Purpose</p>
+</td>
+        <td><p>Example</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>&#8216;&lt;&#8217; or &#8216;lt&#8217;</p>
+</td>
+        <td><p>Less than</p>
+</td>
+        <td><p>select * where quantity &gt; &#8216;1000&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>&#8216;&lt;=&#8217; or &#8216;lte&#8217;</p>
+</td>
+        <td><p>Less than or equal to</p>
+</td>
+        <td><p>Example</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>&#8216;=&#8217; or &#8216;eq&#8217;</p>
+</td>
+        <td><p>Equals</p>
+</td>
+        <td><p>select * where price = &#8216;20.00&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>&#8216;&gt;=&#8217; or &#8216;gte&#8217;</p>
+</td>
+        <td><p>Greater than or equal to</p>
+</td>
+        <td><p>select * where quantity &gt;= &#8216;1000&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>&#8216;&gt;&#8217; or &#8216;gt&#8217;</p>
+</td>
+        <td><p>Greater than</p>
+</td>
+        <td><p>select * where quantity &gt; &#8216;1000&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>not</p>
+</td>
+        <td><p>Subtraction of results</p>
+</td>
+        <td><p>select * where quantity &lt; &#8216;4000&#8217; and not 
quantity = &#8216;2000&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>and</p>
+</td>
+        <td><p>Union of results</p>
+</td>
+        <td><p>select * where quantity &gt; &#8216;1000&#8217; and quantity 
&lt; &#8216;4000&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>or</p>
+</td>
+        <td><p>Intersection of results</p>
+</td>
+        <td><p>select * where quantity = &#8216;1000&#8217; or quantity = 
&#8216;4000&#8217;</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>contains</p>
+</td>
+        <td><p>Narrow by contained text</p>
+</td>
+        <td><p>select * where title contains &#8216;tale&#8217;</p>
+</td>
+    </tr>
+</table></div>
+<div class="section" id="data-types">
+<h2>Data types<a class="headerlink" href="#data-types" title="Permalink to 
this headline">¶</a></h2>
+<p>As you develop queries, remember that entity properties each conform to
+a particular data type. For example, in the default entity User, the
+name property is stored as a string, the created date as a long, and
+metadata is stored as a JSON object. Your queries must be data
+type-aware to ensure that query results are as you expect them to be.</p>
+<p>For example, if you create an entity with a price property with a value
+of 100.00, querying for 100 will return no results, since the API
+expected a decimal-delimited float value in your query.</p>
+<p>For a list of property data types for each default entities, see Default
+Data Entity Types.</p>
+<table class="usergrid-table">
+    <tr>
+        <td><p>string</p>
+</td>
+        <td><pre>'value', unicode '\uFFFF', octal '\0707'</pre></td>
+    </tr>
+    <tr>
+        <td><p>long</p>
+  </td>
+          <td><pre>1357412326021</pre>
+
+Timestamps are typically stored as long values.</td>
+    </tr>
+    <tr>
+        <td><p>float</p>
+  </td>
+          <td><pre>10.1, -10.1, 10e10, 10e-10, 10E10, 10E-10</pre>
+
+Your query must be specific about the value you're looking for, down to<p>the 
value (if any) after the decimal point.</p>
+</td>
+    </tr>
+    <tr>
+        <td><p>boolean</p>
+</td>
+        <td><pre>true | false</pre></td>
+    </tr>
+    <tr>
+        <td><p>UUID</p>
+</td>
+        <td><pre>ee912c4b-5769-11e2-924d-02e81ac5a17b</pre></td>
+    </tr>
+    <tr>
+        <td><p>Array</p>
+</td>
+        <td><pre>["boat", "car", "bike"]</pre></td>
+    </tr>
+    <tr>
+        <td><p>object</p>
+</td>
+        <td><p><p>For a JSON object like this one:</p>
+</p>
+            <pre>
+                {
+                 "items": [
+                  {
+                   "name": "rocks"
+                  },
+                  {
+                   "name": "boats"
+                  }
+                 ]
+                }
+            </pre>
+            <p><p>you can use dot notation to reach property values in the 
object:</p>
+</p>
+            <pre>
+                 /mycollection/thing?ql="select * where items.name = 'rocks'"
+            </pre>
+            <p><p>Objects are often used to contain entity metadata, such as 
the
+activities associated with a user, the users associated with a role, and
+so on.</p>
+</p>
+            <p><p>Please note that object properties are not indexed. This 
means queries
+using dot-notation will be much slower than queries on indexed entity
+properties.</p>
+</p></td>
+    </tr>
+</table></div>
+</div>
+
+
+           </div>
+          </div>
+          <footer>
+  
+    <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
+      
+        <a href="advanced-query-usage.html" class="btn btn-neutral 
float-right" title="Advanced query usage" accesskey="n">Next <span class="fa 
fa-arrow-circle-right"></span></a>
+      
+      
+        <a href="query-parameters.html" class="btn btn-neutral" title="Query 
parameters &amp; clauses" accesskey="p"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
+      
+    </div>
+  
+
+  <hr/>
+
+  <div role="contentinfo">
+    <p>
+        &copy; Copyright 2013-2015, Apache Usergrid.
+
+    </p>
+  </div>
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>.
+
+</footer>
+
+        </div>
+      </div>
+
+    </section>
+
+  </div>
+  
+
+
+  
+
+    <script type="text/javascript">
+        var DOCUMENTATION_OPTIONS = {
+            URL_ROOT:'../',
+            VERSION:'1.0',
+            COLLAPSE_INDEX:false,
+            FILE_SUFFIX:'.html',
+            HAS_SOURCE:  true
+        };
+    </script>
+      <script type="text/javascript" src="../_static/jquery.js"></script>
+      <script type="text/javascript" src="../_static/underscore.js"></script>
+      <script type="text/javascript" src="../_static/doctools.js"></script>
+
+  
+
+  
+  
+    <script type="text/javascript" src="../_static/js/theme.js"></script>
+  
+
+  
+  
+  <script type="text/javascript">
+      jQuery(function () {
+          SphinxRtdTheme.StickyNav.enable();
+      });
+  </script>
+   
+
+</body>
+</html>
\ No newline at end of file

Reply via email to