public boolean indexExists ( String indexName ) { return this . client . admin ( ) . indices ( ) . prepareExists ( indexName ) . execute ( ) . actionGet ( ) . isExists ( ) ; }
Check if an index exists in ES