I tried the below multi percolation query from postman. I was able to execute till 175 queries.
If I try with more number of queries, it was crashing and the postman was getting closed.
POST http://127.0.0.1:9200/xyz4/res/_mpercolate
{"percolate":{"index":"xyz4","id":"AVXe7oZSV","type":"res"}}
{}
{"percolate":{"index":"xyz4","id":"AVXe7oZSV7","type":"res"}}
{}
.....
Then I tried calling this from Java Jersey Client .
I have created this particular query in the given format.
WebTarget target = client.target(UriBuilder.fromUri(uri.toString()).build());
Response response = target.request().post(Entity.entity(String.valueOf(body), MediaType.APPLICATION_JSON));
the variable body holds this query json. When there is only 2 query, it executes and gives the response. For 3 or more queries it throws the below exception.
{"error":"ElasticsearchParseException[Expected field]","status":400}
Please help me on this.