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

Request for more values identified as boolean for the boolean field type - no #984

Closed
ofavre opened this issue May 31, 2011 · 1 comment
Closed

Comments

@ofavre
Copy link
Contributor

ofavre commented May 31, 2011

Currently the doc says [1] that 0 and false are treated as false.
Actually, off is too.

I would like to request no to be also interpreted as false. (yes being treated as true through the fallback "any other value" case)
Generally speaking, matching what is done in parsing JSON configuration/queries should be nice to have for two reasons (IMHO):

  • It makes it more consistent, even though document field values are distinct from ES internal understanding of JSON configuration
  • It is good to have multiple english ways to express a false value, as they are very often used internally as values by many programmers (and therefore somehow sent to ES through JSON docs!)

Maybe F would be good too, but for another reason: this is the term being used internally (and people may want to query using it...... ^^)

[1] http://www.elasticsearch.org/guide/reference/mapping/core-types.html

@kimchy
Copy link
Member

kimchy commented May 31, 2011

Make sense, will add no as a false value.

@kimchy kimchy closed this as completed in 1f17e9d May 31, 2011
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
* fix bug in choosing the NoopLicenseChecker

* bump version to 10.8.1
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