Running the command http://localhost:9200/_cat/indices lists out the index docsnew from the elasticsearch database. Also, able the entries are listed when i enter the following in the browser
http://localhost:9200/docsnew/doc/518d3dbc4e535f44c15649960b322d7
But, when i execute the query from java,
QueryBuilder qb = QueryBuilders.matchQuery("content", value);
SearchResponse response = client.prepareSearch(index) //
.setQuery(qb) // Query
.execute().actionGet();
Throws [docsnew] IndexNotFoundException[no such index] Exception. Any Insights will be helpful.