Hi,
Im on ES 1.2.1 and the below usage is not working for me. even if i pass
the option of ignoring unavailable or closed indices, i get an error
response (ClusterBlockException[blocked by: [FORBIDDEN/4/index closed];]).
Is my usage wrong?

IndicesOptions indicesOptions = IndicesOptions.fromOptions(true, true,
false, false);
MultiSearchRequestBuilder multiSearchRequestBuilder =

client.prepareMultiSearch().setIndicesOptions(indicesOptions);
SearchRequestBuilder searchRequestBuilder =
                client.prepareSearch(...).setIndicesOptions(indicesOptions);
multiSearchRequestBuilder =

multiSearchRequestBuilder.add(searchRequestBuilder);
MultiSearchResponse multiSearchResponse =
                        multiSearchRequestBuilder.execute().actionGet();

this is the multi search response in the debugger -
multiSearchResponse = (org.elasticsearch.action.search.MultiSearchResponse)
{
  "responses" : [ {
    "error" : "ClusterBlockException[blocked by: [FORBIDDEN/4/index
closed];]"
  } ]
}

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHau4yuPUn2TUw7n2FGozzzzomczrUNjxb8%3DH5tqOEc1Yedt4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to