- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/huaban/elasticsearch-analysis-jieba
- 软件文档: https://github.com/huaban/elasticsearch-analysis-jieba
- 官方下载: https://github.com/huaban/elasticsearch-analysis-jieba
软件介绍
结巴分词插件(for elasticsearch),目前支持0.90.*以上版本
---------------------------------------------------- | Jieba Chinese Analysis Plugin | ElasticSearch | ---------------------------------------------------- | 0.0.1-SNAPSHOT (master) | 0.90.* | ----------------------------------------------------
支持两种分词模式(seg_mode):
- index 索引模式,搜索引擎建立索引阶段使用该模式
- search 搜索模式,搜索时采用该种模式分词
使用说明
创建mapping
#!/bin/bash curl -XDELETE '0:9200/test/';echo curl -XPUT '0:9200/test/' -d ' { "index" : { "number_of_shards": 1, "number_of_replicas": 0, "analysis" : { "analyzer" : { "jieba_search" : { "type" : "jieba", "seg_mode" : "search", "stop" : true }, "jieba_index" : { "type" : "jieba", "seg_mode" : "index", "stop" : true } } } } }';echo
test
# index mode curl '0:9200/test/_analyze?analyzer=jieba_index' -d '中华人民共和国';echo
结果:
{ "tokens": [ { "token": "中华", "start_offset": 0, "end_offset": 2, "type": "word", "position": 1 }, { "token": "华人", "start_offset": 1, "end_offset": 3, "type": "word", "position": 2 }, { "token": "人民", "start_offset": 2, "end_offset": 4, "type": "word", "position": 3 }, { "token": "共和", "start_offset": 4, "end_offset": 6, "type": "word", "position": 4 }, { "token": "共和国", "start_offset": 4, "end_offset": 7, "type": "word", "position": 5 }, { "token": "中华人民共和国", "start_offset": 0, "end_offset": 7, "type": "word", "position": 6 } ] }
# search mode curl '0:9200/test/_analyze?analyzer=jieba_search' -d '中华人民共和国';echo
结果:
{ "tokens": [ { "token": "中华人民共和国", "start_offset": 0, "end_offset": 7, "type": "word", "position": 1 } ] }
硅谷增长黑客实战笔记
曲卉 / 机械工业出版社 / 2018-4-10 / 65.00元
增长黑客这个词源于硅谷,简单说,这是一群以数据驱动营销、以迭代验证策略,通过技术手段实现爆发式增长的新型人才。近年来,互联网公司意识到这一角色可以发挥四两拨千斤的作用,因此对该职位的需求也如井喷式增长。 本书作者曾在增长黑客之父肖恩•埃利斯麾下担任增长负责人,用亲身经历为你总结出增长黑客必备的套路、内力和兵法。本书不仅有逻辑清晰的理论体系、干货满满的实践心得,还有Pinterest、SoFi......一起来看看 《硅谷增长黑客实战笔记》 这本书的介绍吧!
