WARNING: Version 2.4 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Binary datatype
editBinary datatype
editThe binary
type accepts a binary value as a
Base64 encoded string. The field is not
stored by default and is not searchable:
PUT my_index { "mappings": { "my_type": { "properties": { "name": { "type": "string" }, "blob": { "type": "binary" } } } } } PUT my_index/my_type/1 { "name": "Some binary blob", "blob": "U29tZSBiaW5hcnkgYmxvYg==" }
Parameters for binary
fields
editThe following parameters are accepted by binary
fields:
Should the field be stored on disk in a column-stride fashion, so that it
can later be used for sorting, aggregations, or scripting? Accepts |
|
Whether the field value should be stored and retrievable separately from
the |