[英]how do I store some bits in elastic search without any indexing?
我在2列的弹性搜索中存储了一些文档:
id | data
--- -----
(int) json string
我使用什么映射来请求弹性搜索以仅存储json字符串而不对其进行任何处理? 为了提高效率,我不希望该列被索引或可搜索-只是希望ES将其存储为位。
在该字段的映射中使用"index": "no"
。
所以也许是这样的:
PUT /test_index
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"mappings": {
"doc": {
"properties": {
"id": {
"type": "integer"
},
"json_string": {
"type": "string",
"index": "no"
}
}
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.