title: How to build datastore indexes (PHP GAE)
body: <p>I am using <a href="https://github.com/tomwalder/php-gds" rel="nofollow noreferrer">Tom Walder's Google Datastore Library for PHP</a> to insert data into my Google App Engine Datastore.</p>
  
  <pre><code>$obj_schema = (new GDS\Schema('Add Log'))
      -&gt;addString('name', TRUE)
      -&gt;addDatetime('time', TRUE);
  $obj_store = new GDS\Store($obj_gateway, $obj_schema);
  $obj_store-&gt;upsert($obj_store-&gt;createEntity(['name' =&gt; "test",'time' =&gt; date('Y-m-d H:i:s', time())]));
  </code></pre>
  
  <p>When I insert data like the above code, everything seems to be importing properly (each property say they are indexed).</p>
  
  <p><img src="https://i.stack.imgur.com/AKLds.png" alt="enter image description here"></p>
  
  <p>But when I go to do a query with multiple selectors it says "You need an index to execute this query".</p>
  
  <p><strong>My query</strong>
  <img src="https://i.stack.imgur.com/ncAyo.png" alt="enter image description here"></p>
  
  <p><strong>The error message</strong>
  <img src="https://i.stack.imgur.com/uSjiH.png" alt="enter image description here"></p>
  
  <p>Does anyone know what I need to do to make sure my queries are being indexed? This is what my dashboard hows with plenty of data using the code I showed. </p>
  
  <p><img src="https://i.stack.imgur.com/yOgoE.png" alt="enter image description here"></p>