Boolean field type
Create a mapping where a, b, and c are Boolean fields:
Index a document with Boolean values:
Search for all documents where c
is false:
The following table lists the parameters accepted by Boolean field types. All parameters are optional.
Run a terms aggregation query on the field a
:
The script returns the value of a
as true
, key
returns the value of a
as 1
, and key_as_string
returns the value of a
as :