I tried the same now the examples given in the documentation (https://
default put, get, delete · GitHub). For this I am using the same elasticsearch
installation as well as the same configuration file
"elasticsearch.yml". Thus, I think that it must having something to do
with how I index the document in the first place. I index my documents
using the node.js elasticsearchclient (git://github.com/phillro/node-
elasticsearch-client.git). The client is basically building up the
same put request as in the curls.
On May 25, 5:30 pm, Stephan Fortelny stephanforte...@gmail.com
wrote:
hi,
I have a problem with the "Delete By Query API", specifically the
problem is that curl with the data ('-d') option as specified in the
documentation (Elasticsearch Platform — Find real-time answers at scale | Elastic
by-query.html) does not actually delete any documents.The example from the documentation I refered to, is this one. I didn't
try them out but I am doing the same, except with different index,
type and user. However, the first command works for me, the second
does not.$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query?
q=user:kimchy'
$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query'-d '{
"term" : { "user" : "kimchy" }}'
This gist (elasticsearch - Delete By Query API - data option does not delete data · GitHub) documentates the issue
more precisely.Thanks,
Stephan