原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/binary.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Binary datatypeedit
The 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": {
"properties": {
"name": {
"type": "text"
},
"blob": {
"type": "binary"
}
}
}
}
PUT my_index/_doc/1
{
"name": "Some binary blob",
"blob": "U29tZSBiaW5hcnkgYmxvYg=="
}
Parameters for binary fieldsedit
The 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 |