I am getting IndexMissingExeption all time I try to perform search using Java.
Exception in thread "main" org.elasticsearch.indices.IndexMissingException: [myindex] missing
The Exception is occurred on line, where I do execute() search
Node node = nodeBuilder().clusterName("myname").node();
Client client = node.client();
SearchResponse scrollResp = client.prepareSearch("myindex", "mytype")
.setScroll(new TimeValue(60000)).setSize(10)
.execute().actionGet();
Index name/cluster name is correct. Index is working, I can perform any operation with index using Curl. Is there something I am missing?