Skip to content
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

Count and Search API status codes are inconsistent (count does not return 400) #3585

Closed
garron opened this Issue Aug 27, 2013 · 0 comments

Comments

Projects
None yet
2 participants
@garron
Copy link

garron commented Aug 27, 2013

I've got a query that produces a 400 when performing a search. However, when I use the same query to perform a count, a 200 status is returned.

https://gist.github.com/garron/6346888

The output from this gist is:

{"ok":true,"_index":"myindex","_type":"mydoc","_id":"5kngTmpeR5GtJg6Vu46tUw","_version":1}\n
Count using a good query
200
Search using a good query
200
Count using a bad query
200
Search using a bad query
400

If you take out the "-o /dev/null", you can see that both the search and count produce errors in the "bad query" case, but the count API still returns a 200.

@ghost ghost assigned bleskes Aug 27, 2013

@bleskes bleskes closed this in 86cb76a Aug 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.