walker 使用的 Elasticsearch 版本爲 7.x
推薦學習阮一鳴《 Elasticsearch 核心技術與實戰》
分析器(analyzer)由三部分組成:字符過濾器(CharacterFilters)、分詞器(Tokenizer)和詞元過濾器(TokenFilters)。
html
# cmd 安裝後可見 ./bin/elasticsearch-plugin list # url 安裝、重啓後可見 http://10.10.10.10:9200/_cat/plugins # kibana GET /_cat/plugins
./bin/elasticsearch-plugin install analysis-icu
./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.4.2/elasticsearch-analysis-ik-7.4.2.zip
./bin/elasticsearch-plugin install file:///usr/share/es/download/plugin/elasticsearch-analysis-ik-7.4.2.zip
-b --batch
POST _analyze { "analyzer": "simple", "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone." }