title: Multiple indexes GAE objectify
body: <p>I've the following Entity on my Android Project :</p>
  
  <pre><code>@Entity
  public class Journey {
  
      @Id
      private Long id;
      private Ref&lt;User&gt; driver;
      @Index private Ref&lt;Event&gt; event;
      private Long nbPlaces;
      @Index private String departureTime;
      private String destination;
      @Index private String departureDate;
  }
  </code></pre>
  
  <p>And the following query on my Endpoint :</p>
  
  <pre><code>@ApiMethod(
          name = "listJourneyByEvent",
          path = "journeyByEvent",
          httpMethod = ApiMethod.HttpMethod.GET)
  public CollectionResponse&lt;Journey&gt; listJourneyByEvent(@Named("idEvent") Long idEvent, @Nullable @Named("cursor") String cursor, @Nullable @Named("limit") Integer limit) {
      limit = limit == null ? DEFAULT_LIST_LIMIT : limit;
      Key&lt;Event&gt; key = Key.create(Event.class, idEvent);
  
      Query&lt;Journey&gt; query = ofy().load().type(Journey.class).filter("event", key).order("departureDate").limit(limit);
      if (cursor != null) {
          query = query.startAt(Cursor.fromWebSafeString(cursor));
      }
      QueryResultIterator&lt;Journey&gt; queryIterator = query.iterator();
      List&lt;Journey&gt; journeyList = new ArrayList&lt;Journey&gt;(limit);
      while (queryIterator.hasNext()) {
          journeyList.add(queryIterator.next());
      }
      return CollectionResponse.&lt;Journey&gt;builder().setItems(journeyList).setNextPageToken(queryIterator.getCursor().toWebSafeString()).build();
  }
  </code></pre>
  
  <p>But when I execute the method I receive the following error :</p>
  
  <pre><code>E/ch.hevs.co_voituragefiesta.async.AsyncJourneyList: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable
                                                                                                                 {
                                                                                                                   "code": 503,
                                                                                                                   "errors": [
                                                                                                                     {
                                                                                                                       "domain": "global",
                                                                                                                       "message": "com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. recommended index is:\n- kind: Journey\n  properties:\n  - name: event\n  - name: departureDate\n\nThe suggested index for this query is:\n    &lt;datastore-index kind=\"Journey\" ancestor=\"false\" source=\"manual\"&gt;\n        &lt;property name=\"event\" direction=\"asc\"/&gt;\n        &lt;property name=\"departureDate\" direction=\"asc\"/&gt;\n    &lt;/datastore-index&gt;\n\n",
                                                                                                                       "reason": "backendError"
                                                                                                                     }
                                                                                                                   ],
                                                                                                                   "message": "com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. recommended index is:\n- kind: Journey\n  properties:\n  - name: event\n  - name: departureDate\n\nThe suggested index for this query is:\n    &lt;datastore-index kind=\"Journey\" ancestor=\"false\" source=\"manual\"&gt;\n        &lt;property name=\"event\" direction=\"asc\"/&gt;\n        &lt;property name=\"departureDate\" direction=\"asc\"/&gt;\n    &lt;/datastore-index&gt;\n\n"
                                                                                                                 }
  </code></pre>
  
  <p>I've read that the GAE take some time to generate the Indexes but I think that isn't the problem.</p>
  
  <p>I also read that we can't have multiple indexes in an Entity.. Is that true ?</p>
  
  <p>Thanks</p>