return xmlBeans;
}
@Test
public void test_multiple_clients() {
Client client = checkClient("esClient");
Client client2 = checkClient("esClient2");
// We test how many shards and replica we have
ClusterStateResponse response = client.admin().cluster().prepareState().execute().actionGet();
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfShards(), is(1));
// We don't expect the number of replicas to be 4 as we won't merge _update_settings.json
// See #31: https://github.com/dadoonet/spring-elasticsearch/issues/31
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfReplicas(), is(0));
// Let's do the same thing with the second client
// We test how many shards and replica we have
response = client2.admin().cluster().prepareState().execute().actionGet();
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfShards(), is(1));
// We don't expect the number of replicas to be 4 as we won't merge _update_settings.json
// See #31: https://github.com/dadoonet/spring-elasticsearch/issues/31
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfReplicas(), is(0));