-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeleteByQuery delete all items in index #18
Comments
Correct query is I fixed delete function, now it's work fine public ConnectionStatus DeleteByQuery(string query, DeleteByQueryParameters parameters) where T : class
|
Yikes thats a pretty nasty regression. I noticed all I've updated the tests and fixed the various delete by query calls. Can you confirm the latest commit fixed this for you ? Thanks for reporting ! |
I just tested your last commit - it works fine, thank you for fast fix! |
Following code delete all records in index, not only with id = "1404.0.0"
I captured following request
DELETE http://10.54.xx.xx:9200/test_create/address_search/?pretty=true
HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: 10.54.18.47:9200
Content-Length: 64
Expect: 100-continue
Connection: Keep-Alive
{ "query" : {
"terms" : { "id" : ["1404.0.0"] }
} }
On elastic search forum I got answer that
I should replace :
http://10.54.xx.xx:9200/test_create/address_search/?pretty=true
by : http://10.54.xx.xx:9200/test_create/address_search/_query?pretty=true
More info here
https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/zdKU9BiUwj0
Thanks!
The text was updated successfully, but these errors were encountered: