美文网首页
测试分词器

测试分词器

作者: zz云飞扬 | 来源:发表于2019-12-12 15:17 被阅读0次

1、测试es插件里的分词器

POST _analyze

{

  "analyzer": "whitespace",

  "text":    "The quick brown fox."

}

POST _analyze

{

  "tokenizer": "standard",

  "filter":  [ "lowercase", "asciifolding" ],

  "text":      "Is this déja vu?"

}

2、测试具体索引的分词器,这个索引可以是settings中自定义索引(见kibana建立索引那篇文章)

POST test_index333/_analyze

{

  "analyzer": "pinyin_analyzer",

  "text":"zhongguolianxiangjituan"

}

相关文章

网友评论

      本文标题:测试分词器

      本文链接:https://www.haomeiwen.com/subject/twrtnctx.html