好的想法是十分钱一打,真正无价的是能够实现这些想法的人。

[Mapping definition for [_source] has unsupported parameters: [compress : true]];

Elasticsearch | 作者 shawn | 发布于2016年12月12日 | 阅读数:8531

{
        "template": "test",
        "settings": {
            "index.number_of_shards": 9,
            "number_of_replicas": 1
        },
        "mappings": {
            "test": {
                 "_id":{
                    "path":"docId"
                },
                "_all": {
                    "enabled": false
                },
                "_timestamp": {
                    "enabled": true
                },
                "_source":{
                    "compress":true
                },
                "_ttl": {
                    "enabled": false,
                    "default": "1d"
                },
                 "dynamic": "true",  
            }
        }
}
请教一下为什么会报错
已邀请:

lopince

赞同来自: kennywu76

所以你应该直接把Compress这行删除就OK了

lopince

赞同来自:

就_source现在不支持compress这个属性啊, 你换一下嘛
 

lopince

赞同来自:

from version 0.90 onwards, all stored fields ( including _source ) are always compressed
https://www.elastic.co/guide/e ... .html

要回复问题请先登录注册