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
boolean values cannot be searched with expected queries #327
Comments
Which queries did you try and execute? |
I was using bool queries, but it can also be demonstrated with curl and query strings: curl -XPOST http://127.0.0.1:9200/test_index/test -d '{"boolean_field":true}' |
ok, found the problem. In any case, just a note, with your example above, you should issue a refresh after you index, so you verify what you indexed is now searchable. In any case, I will fix it for query string types, it should work for other queries, but if it doen't ping... |
boolean values cannot be searched with expected queries, closed by 91aada2. |
Forgot about the refresh, thanks! I just checked out the new version and it works with query strings and bool queries. |
When searching for a document with a boolean value, I must search for the values "T" or "F" instead of the more intuitive true/"true" and false/"false". It also appears that the values 1 and 0 do not work as substitutes in the query, regardless of whether they are numbers or strings.
I should be able to use true, "true", "T", 1, and "1" to search for true values.
The text was updated successfully, but these errors were encountered: