码迷,mamicode.com
首页 > Web开发 > 详细

lucene和es总结

时间:2016-12-25 07:37:06      阅读:552      评论:0      收藏:0      [点我收藏+]

标签:自定义   sts   mon   文献   Lucene   git   参考文献   .com   lte   

一、首先介绍lucene涉及到的排序过程

技术分享

1.1、如何自定义排序对象

你可以自定义collector对象;

亦可以自定义comparator对象;

可以自定义scoredoc对象,决定如何处理结果集合;

1.2、这几种自定义之间有何区别?

自定义collector和comparator有什么区别呢????????

Besides building your own Collector to customize how the results are stored and sorted, another way to customize results sorting is to implement your own FieldComparator for SortField. Note that this customization only deals with the sorting aspect of the result set; it does not give you the flexibility to filter out results, as you would have with Collector.

 

 

二、ES master slave介绍

master es中的作用就是:it’s the responsability of the master node to allocate the shards equally among the nodes. 

requests分为两种:index requests和 search requests;两种请求可以落到集群任何一台机器。

三、参考文献

http://blog.trifork.com/2013/10/24/how-to-avoid-the-split-brain-problem-in-elasticsearch/

https://github.com/xuxueli/xxl-search/blob/master/xxl-search-client/src/main/java/com/xxl/search/client/es/ElasticsearchUtil.java

 

lucene和es总结

标签:自定义   sts   mon   文献   Lucene   git   参考文献   .com   lte   

原文地址:http://www.cnblogs.com/amazement/p/6218917.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!