def get_composite_indexes(self, app_id, kind):
    if not kind:
      return []

    if app_id in self.composite_index_cache:
      if self.composite_index_cache[app_id] == self.NO_COMPOSITES:
        return []
      elif kind in self.composite_index_cache[app_id]:
        return self.composite_index_cache[app_id][kind]
      else:
        return []
    else:
      if self.load_composite_cache(app_id):
        if kind in self.composite_index_cache[app_id]:
          return self.composite_index_cache[kind]
      return []
Tests TwitterSearch.search_tweets_iterable(callback) by using TwitterSearchOrder class
dataset/ETHPy150Open AppScale/appscale/AppDB/groomer.py/DatastoreGroomer.get_composite_indexes--crossover with--dataset/ETHPy150Open ckoepp/TwitterSearch/tests/test_ts.py/TwitterSearchTest.test_TS_search_tweets_iterable_callback