My unit/integration tests includes tests for search functionality.
My idea is to have empty search index before each test. So, I\'m trying to remove al
delete all items via:
client.prepareDeleteByQuery(indexName).
setQuery(QueryBuilders.matchAllQuery()).
setTypes(indexType).
execute().actionGet();
refresh your index to see the changes (only required in unit tests)