ElasticSearch的IK安装步骤

windows下elasticsearch安装IK分词步骤模拟:

>>1:载ik相关配置词典文件到config目录:

http://github.com/downloads/medcl/elasticsearch-analysis-ik/ik.zip (解压到config目录下)


>>2:下载ik.jar  http://download.csdn.net/download/an74520/5182417  放到lib目录下


>>3:在elasticsearch.yml中配置IK分词

index:  
  analysis:                     
    analyzer:        
      ik:  
        alias: [ik_analyzer]  
        type: org.elasticsearch.index.analysis.IkAnalyzerProvider  
 


index.analysis.analyzer.ik.type : "ik"


linux 下elasticsearch安装 IK分词:


>>1:进入elasticsearch的config目录:

cd config wget http://github.com/downloads/medcl/elasticsearch-analysis-ik/ik.zip --no-check-certificate unzip ik.zip rm ik.zip

>>2:同上

>>3:在elasticsearch.yml中配置IK分词《同上3》

你可能感兴趣的:(IK安装步骤,ElasticSearch,ik.jar,ik分词器,ElasticSearch)