duoan / notes

Classtag's Notebooks
https://github.com/classtag/notebook/issues
9 stars 3 forks source link

elasticsearch学习总结 #1

Open duoan opened 8 years ago

duoan commented 8 years ago

用来作为搜索推荐的学习。主要尝试其中的moreLikeThis geoSearch

duoan commented 8 years ago

几个插件,非常棒 sql、head、oob、koap

duoan commented 8 years ago

https://github.com/hangxin1940/elasticsearch-cn-out-of-box 这个集成版本的,但是版本有点儿低了

duoan commented 8 years ago

权威指南里面讲的非常好 https://github.com/looly/elasticsearch-definitive-guide-cn

duoan commented 8 years ago

https://github.com/medcl/elasticsearch-rtf 这个项目里面集成了写中文分词的插件

duoan commented 8 years ago

https://github.com/xiocode/elasticsearch 这个项目里集成了 thrift ,其实比较适合目前公司的使用

duoan commented 8 years ago

https://github.com/spring-projects/spring-data-elasticsearch spring-data-elasticsearch,还是比较好用,生成环境也在使用,但是比较坑的是,在save的时候没有办法指定index_name,所以需要扩展,最好的扩展办法就是集成 ElasticsearchRepositoryFactoryBean 实现新的factory,来做,这部分的扩展已经集成到我的个人代码仓库中。 另外需要指出的是,一般的过程是 creatIndex,updateMapping,save数据

duoan commented 8 years ago

好吧,我决定搞一把了,像用mybatis一样去使用elasticsearch。降低DSL的学习成本