public void gettingStatisticsShouldWork() throws Exception {
// needed to make sure that we hit the already queried shards for stats, the other are empty
Settings settings = settingsBuilder()
.put("index.number_of_replicas", 0)
.build();
UpdateSettingsResponse response = client().admin().indices().prepareUpdateSettings(index).setSettings(settings).get();
assertThat(response.isAcknowledged(), is(true));
List<Map<String, Object>> products = createProducts("ProductName",
"BMW 318", "BMW 528", "BMW M3", "the BMW 320", "VW Jetta");
indexProducts(products);