assertThrows(client().prepareMultiGet().add("no_index", "type1", "1"),
ClusterBlockException.class, RestStatus.SERVICE_UNAVAILABLE
);
PercolateSourceBuilder percolateSource = new PercolateSourceBuilder();
percolateSource.setDoc(docBuilder().setDoc(new HashMap()));
assertThrows(client().preparePercolate()
.setIndices("test").setDocumentType("type1")
.setSource(percolateSource),
ClusterBlockException.class, RestStatus.SERVICE_UNAVAILABLE
);
percolateSource = new PercolateSourceBuilder();
percolateSource.setDoc(docBuilder().setDoc(new HashMap()));
assertThrows(client().preparePercolate()
.setIndices("no_index").setDocumentType("type1")
.setSource(percolateSource),
ClusterBlockException.class, RestStatus.SERVICE_UNAVAILABLE
);