v.kumar
(vinay)
July 5, 2017, 3:00pm
1
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
dadoonet
(David Pilato)
July 5, 2017, 3:03pm
2
v.kumar
(vinay)
July 5, 2017, 3:05pm
3
BulkByScrollResponse , DeleteByQueryAction these are not there in old version
dadoonet
(David Pilato)
July 5, 2017, 9:18pm
4
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:
I am trying to delete certain data according to a search result. I am using elasticsearch version 2.3 with an embedded server. I've managed to do this with the delete-by-query plugin with the standalone server as follows but it seems that we can't use plugins with the embedded server.
DeleteByQueryResponse delete = new DeleteByQueryRequestBuilder(client, DeleteByQueryAction.INSTANCE)
.setIndices(ES_INDEX_NAME)
.setTypes(ES_RECORD_TYPE)
.setQuery(QueryBuilders.boolQuery()…
system
(system)
Closed
August 2, 2017, 9:18pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.