Today I use this code to execute one select
QueryBuilder query = QueryBuilders.matchQuery(where,what);
		QueryBuilder filter = QueryBuilders.filteredQuery(query, filterBuilder);
		client.admin().indices().prepareAliases().addAlias("binhoca",this.getIndex()).execute();
		SearchResponse response = client.prepareSearch(this.getIndex())
				.setTypes(this.getType())
				.setQuery(filter)
				.addSort(campoOrder, tipoSorter)
				.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
				.setSize(5000).execute()
				.actionGet();
		SearchHit[] hits = response.getHits().getHits();
		List<Map<String, Object>> retorno = new ArrayList<Map<String, Object>>();
So now I create one alias to my indice what I need to change to use alias instead indice name?
tks
 now works..