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

boolean values cannot be searched with expected queries #327

Closed
grantr opened this issue Aug 17, 2010 · 5 comments
Closed

boolean values cannot be searched with expected queries #327

grantr opened this issue Aug 17, 2010 · 5 comments

Comments

@grantr
Copy link

grantr commented Aug 17, 2010

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.

@kimchy
Copy link
Member

kimchy commented Aug 17, 2010

Which queries did you try and execute?

@kimchy
Copy link
Member

kimchy commented Aug 18, 2010

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...

@kimchy
Copy link
Member

kimchy commented Aug 18, 2010

boolean values cannot be searched with expected queries, closed by 91aada2.

@grantr
Copy link
Author

grantr commented Aug 18, 2010

Forgot about the refresh, thanks! I just checked out the new version and it works with query strings and bool queries.

williamrandolph pushed a commit to williamrandolph/elasticsearch that referenced this issue Jun 4, 2020
mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
)

MPC-3729: only dev has no sandbox aliases

* only dev has no sandbox aliases


Approved-by: Gideon Avida
Approved-by: Can Yildiz
costin pushed a commit that referenced this issue Dec 6, 2022
🤖 ESQL: Merge upstream
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants