多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Binary **binary**(二进制)类型接受二进制值作为**Base64**编码字符串。 该字段默认情况下不存储,不可搜索: | `PUT my_index` `{` `"mappings"``: {` `"my_type"``: {` `"properties"``: {` `"name"``: {` `"type"``: ``"text"` `},` `"blob"``: {` `"type"``: ``"binary"` `}` `}` `}` `}` `}` `PUT my_index/my_type/``1` `{` `"name"``: ``"Some binary blob"``,` `"blob"``: ``"U29tZSBiaW5hcnkgYmxvYg=="`  `#``1` `}` | | 1 | **Base64**编码的二进制值不能有嵌入的换行符**\n**。 | ### binary字段的参数 **binary**(二进制)字段接受一下参数 | [`doc_values`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/doc-values.html "doc_values") | 该字段是否应该以多列的方式存储在磁盘上,以便以后可以将其用于排序,聚合或脚本? 接受**true**(默认)或**false**。 | | [`store`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-store.html "store") | 字段值是否应与_sourcefield分开存储和检索。 接受**true**或**false**(默认)。 |