return createContentIndex(indexName, 0);
}
@Override
public synchronized boolean createContentIndex(String indexName, int shards) throws ElasticSearchException, IOException {
CreateIndexResponse cir = iapi.createIndex(indexName, null, shards);
int i = 0;
while(!cir.isAcknowledged()){
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block