title: how to make a mutilple index in ES API Java
body: <p>my index is : <code>https://URL/bpa_stag_v3_2016*,bpa_stag_v3_2017/orders_suppliers_stats_ag/_search</code>
  i'm using the api java for Elastic search , and it didn't work . </p>
  
  <pre><code>  String indexForTwoYear = ConfiguratorDao.CURRENT_ENV.getAliasPrefix() + String.valueOf(previousYear) + "*,"
                      + ConfiguratorDao.CURRENT_ENV.getAliasPrefix() + String.valueOf(currentYear) + "*";
  
  
  
              SearchRequestBuilder requestBuilder = client.prepareSearch(indexForTwoYear)
                      .setTypes(IndexTypeEnum.SUPPLIERS_AGGREGATION.getValue()).setQuery(queryBuilder).setSize(1);
  </code></pre>