OpenSearch/modules/lang-painless
Ryan Ernst 3d3dd7185d Add support for booleans in scripts (#20950)
* Scripting: Add support for booleans in scripts

Since 2.0, booleans have been represented as numeric fields (longs).
However, in scripts, this is odd, since you expect doing a comparison
against a boolean to work. While languages like groovy will auto convert
between booleans and longs, painless does not.

This changes the doc values accessor for boolean fields in scripts to
return Boolean objects instead of Long objects.

closes #20949

* Make Booleans final and remove wrapping of `this` for getValues()
2016-10-17 11:11:42 -07:00
..
licenses merge master 2016-06-11 13:23:17 -04:00
src Add support for booleans in scripts (#20950) 2016-10-17 11:11:42 -07:00
ant.xml Remove Painless grammar ambiguities. 2016-05-23 16:39:52 -07:00
build.gradle Circuit break the number of inline scripts compiled per minute 2016-08-09 10:26:27 -06:00