Delete type in index using java api

Hi All,

I want to one type in index but not mapping. I am using ES 2.2 . How can i do that.

Using curl I can do like

DELETE /indexName/type/_query
"query": {
"match": {
"hd": "Open"

I cant find how can i do with Java api. Please suggest

Here is the doc for 5.4:

Not sure how it differs for older version though.

BulkByScrollResponse , DeleteByQueryAction these are not there in old version

DeleteByQuery was a plugin before 5.0.
So you probably need to add it to the transport client as well if you want to use it.

May be read as well:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.