Skip to content

Commit

Permalink
elasticsearch 中文分词配置完成
Browse files Browse the repository at this point in the history
  • Loading branch information
supermy committed Aug 14, 2015
1 parent 77972bf commit aacddd9
Show file tree
Hide file tree
Showing 22 changed files with 703,267 additions and 792 deletions.
7 changes: 7 additions & 0 deletions common/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ RUN grep node.name /etc/elasticsearch/elasticsearch.yml


ENV PATH /usr/share/elasticsearch/bin:$PATH

COPY config /usr/share/elasticsearch/config

RUN mkdir -p /usr/share/elasticsearch/logs/ && chmod 777 /usr/share/elasticsearch/logs/
RUN mkdir -p /usr/share/elasticsearch/plugins/analysis-ik/

COPY elasticsearch-analysis-ik-1.4.0-jar-with-dependencies.jar /usr/share/elasticsearch/plugins/analysis-ik/


VOLUME /usr/share/elasticsearch/data

COPY docker-entrypoint.sh /
Expand Down
6 changes: 6 additions & 0 deletions common/elasticsearch/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ docker run -d -v "$PWD/config":/usr/share/elasticsearch/config elasticsearch

docker run -d -v "$PWD/esdata":/usr/share/elasticsearch/data elasticsearch



curl -XPUT http://192.168.59.103:9200/supermy/test/123 -d '{
"name" : "史密斯"
}'
Expand Down Expand Up @@ -82,6 +84,10 @@ curl -XGET http://192.168.59.103:9200/twitter/_search?pretty=true -d '{
}
}'

中文分词
https://github.com/supermy/elasticsearch-analysis-ik
http://my.oschina.net/u/579033/blog/394845#OSC_h4_18


http://www.elasticsearch.cn/guide/reference/setup/installation.html
分布式集群
Expand Down
Loading

0 comments on commit aacddd9

Please sign in to comment.