在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。
更新

更新

请教es7在大量使用bulk 写入、更新、删除的优化问题

Elasticsearchchenyaming 回复了问题 • 2 人关注 • 1 个回复 • 2132 次浏览 • 2020-09-04 16:16 • 来自相关话题

Elasticsearch v6.4.1 发布

资讯动态medcl 发表了文章 • 0 个评论 • 2873 次浏览 • 2018-09-19 14:47 • 来自相关话题

今天 Elasticsearch 的小的bug 修复版本 v6.4.1 已经发布,主要修复了 rollover 的一个 bug,如果你在用 Rollover 功能,请尽快升级! Elasticsearch can once again start if any shards on the node have been rolled over. #33394   下载地址: https://www.elastic.co/downloads/elasticsearch     Elastic Stack 家族的其他部分也发布了,更新内容还不少哦。 Kibana v6.4.1:https://www.elastic.co/guide/e ... .html Logstash v6.4.1: https://www.elastic.co/guide/e ... .html Beats v6.4.1: https://www.elastic.co/guide/e ... .html    

如何做到更新ES的某一个属性值而不影响评分

Elasticsearchlaoyang360 回复了问题 • 4 人关注 • 1 个回复 • 2970 次浏览 • 2018-04-08 12:55 • 来自相关话题

请问大家更新 ES 文档的时候,有没有向数组中添加元素并去重的方法

回复

Elasticsearchyufeiminds 发起了问题 • 2 人关注 • 0 个回复 • 5181 次浏览 • 2017-12-13 19:29 • 来自相关话题

elasticsearch-analysis-pinyin更新至es2.4.1和5.0.0-rc1

Elasticsearchmedcl 发表了文章 • 3 个评论 • 3988 次浏览 • 2016-10-13 21:49 • 来自相关话题

版本分别支持到最新的 es v2.4.1和 es v5.0.0-rc1 新增若干特性,支持多种选项配置,支持 pinyin 的切分,比之前需要结合 ngram 的方式更加准确, 如:liudehuaalibaba13zhuanghan->liu,de,hua,a,li,ba,ba,13,zhuang,han, 具体配置参加文档: https://github.com/medcl/elast ... inyin   下载: https://github.com/medcl/elast ... eases   欢迎测试:
curl -XPUT http://localhost:9200/medcl/ -d'
{
    "index" : {
        "analysis" : {
            "analyzer" : {
                "pinyin_analyzer" : {
                    "tokenizer" : "my_pinyin"
                    }
            },
            "tokenizer" : {
                "my_pinyin" : {
                    "type" : "pinyin",
                    "keep_separate_first_letter" : false,
                    "keep_full_pinyin" : true,
                    "keep_original" : false,
                    "limit_first_letter_length" : 16,
                    "lowercase" : true
                }
            }
        }
    }
}'

curl http://localhost:9200/medcl/_a ... lyzer
{
  "tokens" : [ {
    "token" : "liu",
    "start_offset" : 0,
    "end_offset" : 1,
    "type" : "word",
    "position" : 0
  }, {
    "token" : "de",
    "start_offset" : 1,
    "end_offset" : 2,
    "type" : "word",
    "position" : 1
  }, {
    "token" : "hua",
    "start_offset" : 2,
    "end_offset" : 3,
    "type" : "word",
    "position" : 2
  }, {
    "token" : "a",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 3
  }, {
    "token" : "b",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 4
  }, {
    "token" : "c",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 5
  }, {
    "token" : "d",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 6
  }, {
    "token" : "liu",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 7
  }, {
    "token" : "de",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 8
  }, {
    "token" : "hua",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 9
  }, {
    "token" : "wo",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 10
  }, {
    "token" : "bu",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 11
  }, {
    "token" : "zhi",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 12
  }, {
    "token" : "dao",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 13
  }, {
    "token" : "shi",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 14
  }, {
    "token" : "shui",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 15
  }, {
    "token" : "ldhabcdliudehuaw",
    "start_offset" : 0,
    "end_offset" : 16,
    "type" : "word",
    "position" : 16
  } ]
}
 

elasticsearch-rtf更新至2.1.1

Elasticsearchmedcl 发表了文章 • 4 个评论 • 8059 次浏览 • 2015-12-25 16:32 • 来自相关话题

地址:https://github.com/medcl/elasticsearch-rtf   使用git快速签出最新版: git clone git://github.com/medcl/elasticsearch-rtf.git -b master --depth 1   包含插件: elasticsearch-analysis-ik-1.6.2        elasticsearch-analysis-pinyin-1.5.2 elasticsearch-analysis-mmseg-1.6.2     elasticsearch-analysis-stconvert-1.6.1 使用: cd elasticsearch/bin  ./elasticsearch    
地址:https://github.com/medcl/elasticsearch-rtf   使用git快速签出最新版: git clone git://github.com/medcl/elasticsearch-rtf.git -b master --depth 1   包含插件: elasticsearch-analysis-ik-1.6.2        elasticsearch-analysis-pinyin-1.5.2 elasticsearch-analysis-mmseg-1.6.2     elasticsearch-analysis-stconvert-1.6.1 使用: cd elasticsearch/bin  ./elasticsearch    

请教es7在大量使用bulk 写入、更新、删除的优化问题

回复

Elasticsearchchenyaming 回复了问题 • 2 人关注 • 1 个回复 • 2132 次浏览 • 2020-09-04 16:16 • 来自相关话题

如何做到更新ES的某一个属性值而不影响评分

回复

Elasticsearchlaoyang360 回复了问题 • 4 人关注 • 1 个回复 • 2970 次浏览 • 2018-04-08 12:55 • 来自相关话题

请问大家更新 ES 文档的时候,有没有向数组中添加元素并去重的方法

回复

Elasticsearchyufeiminds 发起了问题 • 2 人关注 • 0 个回复 • 5181 次浏览 • 2017-12-13 19:29 • 来自相关话题

Elasticsearch v6.4.1 发布

资讯动态medcl 发表了文章 • 0 个评论 • 2873 次浏览 • 2018-09-19 14:47 • 来自相关话题

今天 Elasticsearch 的小的bug 修复版本 v6.4.1 已经发布,主要修复了 rollover 的一个 bug,如果你在用 Rollover 功能,请尽快升级! Elasticsearch can once again start if any shards on the node have been rolled over. #33394   下载地址: https://www.elastic.co/downloads/elasticsearch     Elastic Stack 家族的其他部分也发布了,更新内容还不少哦。 Kibana v6.4.1:https://www.elastic.co/guide/e ... .html Logstash v6.4.1: https://www.elastic.co/guide/e ... .html Beats v6.4.1: https://www.elastic.co/guide/e ... .html    

elasticsearch-analysis-pinyin更新至es2.4.1和5.0.0-rc1

Elasticsearchmedcl 发表了文章 • 3 个评论 • 3988 次浏览 • 2016-10-13 21:49 • 来自相关话题

版本分别支持到最新的 es v2.4.1和 es v5.0.0-rc1 新增若干特性,支持多种选项配置,支持 pinyin 的切分,比之前需要结合 ngram 的方式更加准确, 如:liudehuaalibaba13zhuanghan->liu,de,hua,a,li,ba,ba,13,zhuang,han, 具体配置参加文档: https://github.com/medcl/elast ... inyin   下载: https://github.com/medcl/elast ... eases   欢迎测试:
curl -XPUT http://localhost:9200/medcl/ -d'
{
    "index" : {
        "analysis" : {
            "analyzer" : {
                "pinyin_analyzer" : {
                    "tokenizer" : "my_pinyin"
                    }
            },
            "tokenizer" : {
                "my_pinyin" : {
                    "type" : "pinyin",
                    "keep_separate_first_letter" : false,
                    "keep_full_pinyin" : true,
                    "keep_original" : false,
                    "limit_first_letter_length" : 16,
                    "lowercase" : true
                }
            }
        }
    }
}'

curl http://localhost:9200/medcl/_a ... lyzer
{
  "tokens" : [ {
    "token" : "liu",
    "start_offset" : 0,
    "end_offset" : 1,
    "type" : "word",
    "position" : 0
  }, {
    "token" : "de",
    "start_offset" : 1,
    "end_offset" : 2,
    "type" : "word",
    "position" : 1
  }, {
    "token" : "hua",
    "start_offset" : 2,
    "end_offset" : 3,
    "type" : "word",
    "position" : 2
  }, {
    "token" : "a",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 3
  }, {
    "token" : "b",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 4
  }, {
    "token" : "c",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 5
  }, {
    "token" : "d",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 6
  }, {
    "token" : "liu",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 7
  }, {
    "token" : "de",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 8
  }, {
    "token" : "hua",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 9
  }, {
    "token" : "wo",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 10
  }, {
    "token" : "bu",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 11
  }, {
    "token" : "zhi",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 12
  }, {
    "token" : "dao",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 13
  }, {
    "token" : "shi",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 14
  }, {
    "token" : "shui",
    "start_offset" : 2,
    "end_offset" : 31,
    "type" : "word",
    "position" : 15
  }, {
    "token" : "ldhabcdliudehuaw",
    "start_offset" : 0,
    "end_offset" : 16,
    "type" : "word",
    "position" : 16
  } ]
}
 

elasticsearch-rtf更新至2.1.1

Elasticsearchmedcl 发表了文章 • 4 个评论 • 8059 次浏览 • 2015-12-25 16:32 • 来自相关话题

地址:https://github.com/medcl/elasticsearch-rtf   使用git快速签出最新版: git clone git://github.com/medcl/elasticsearch-rtf.git -b master --depth 1   包含插件: elasticsearch-analysis-ik-1.6.2        elasticsearch-analysis-pinyin-1.5.2 elasticsearch-analysis-mmseg-1.6.2     elasticsearch-analysis-stconvert-1.6.1 使用: cd elasticsearch/bin  ./elasticsearch    
地址:https://github.com/medcl/elasticsearch-rtf   使用git快速签出最新版: git clone git://github.com/medcl/elasticsearch-rtf.git -b master --depth 1   包含插件: elasticsearch-analysis-ik-1.6.2        elasticsearch-analysis-pinyin-1.5.2 elasticsearch-analysis-mmseg-1.6.2     elasticsearch-analysis-stconvert-1.6.1 使用: cd elasticsearch/bin  ./elasticsearch