????river
????????es????????????????????洢??????磺?????????????es??????????????????????????????es?? ????????river?е????????????????es?У??????river??couchDB???RabbitMQ???Twitter???Wikipedia ???
????gateway
????????es??????????洢?????es????????????????????У???????????????????????????es???????? ???????????gateway?ж???????????es???????????gateway???б???????????????????????????Hadoop??HDFS?? amazon??s3??洢????
????discovery.zen
????????es???????????????es?????????p2p???????????????????????????????Э???????н?????????????????????????
????Transport
????????es??????????????????????????????????tcpЭ????н????????????httpЭ?饗json???????thrift??servlet??memcached??zeroMQ??????Э?饗????????????????
????????????elasticsearch?????????
????elasticsearch??????smartcn?????????????Ч??????????????????medcl???????????о?es????????д?????????????????????ik????????mmseg????????????????????÷????????????????????????????У?
???????ik?????
????plugin -install medcl/elasticsearch-analysis-ik/1.1.0
????????ik??????????????config??
????cd config
????wget http://github.com/downloads/medcl/elasticsearch-analysis-ik/ik.zip --no-check-certificate
????unzip ik.zip
????rm ik.zip
???????mmseg?????
????bin/plugin -install medcl/elasticsearch-analysis-mmseg/1.1.0
??????????????????????config??
????cd config
????wget http://github.com/downloads/medcl/elasticsearch-analysis-mmseg/mmseg.zip --no-check-certificate
????unzip mmseg.zip
????rm mmseg.zip
???????????
????ik??????????elasticsearch.yml????м???
????index:
????analysis:
????analyzer:
????ik:
????alias: [ik_analyzer]
????type: org.elasticsearch.index.analysis.IkAnalyzerProvider
??????
????index.analysis.analyzer.ik.type : “ik”
??????????????????
????mmseg???????????????elasticsearch.yml?????
????index:
????analysis:
????analyzer:
????mmseg:
????alias: [news_analyzer?? mmseg_analyzer]
????type: org.elasticsearch.index.analysis.MMsegAnalyzerProvider
??????
????index.analysis.analyzer.default.type : "mmseg"
????mmseg??????Щ?????????????????????
index:
analysis:
tokenizer:
mmseg_maxword:
type: mmseg
seg_type: "max_word"
mmseg_complex:
type: mmseg
seg_type: "complex"
mmseg_simple:
type: mmseg
seg_type: "simple"
???????????????????????????es?????????