
Elasticsearch
滕哥
这个作者很懒,什么都没留下…
展开
-
【Elasticsearch】Java Client入门
序言Elasticsearch(名称太长,后面简称ES)作为一个搜索引擎,目前可谓是如日中天,几乎和solr齐驾并驱。关于他能做什么,跟云计算有什么关系,在此不再描述。但是ES的官方文档,特别是关于java的客户端文档,真是少的可怜,甚至连个完整的增删改的示例都没有。在此,我就献丑了。转载 2016-05-05 13:01:48 · 8789 阅读 · 1 评论 -
【Elasticsearch】以服务的形式启动Elasticsearch
Running as a Service on WindowsThe script requires one parameter (the command to execute) followed by an optional one indicating the service id (useful when installing multiple Elasticse原创 2016-05-19 16:56:41 · 7645 阅读 · 0 评论 -
【Elasticsearch】Java Client连接池
按照Elasticsearch API,在Java端使用是ES服务需要创建Java Client,但是每一次连接都实例化一个client,对系统的消耗很大,即使在使用完毕之后将client close掉,由于服务器不能及时回收socket资源,极端情况下会导致服务器达到最大连接数。为了解决上述问题并提高client利用率,可以参考使用池化技术复用client。原创 2016-05-05 13:22:05 · 26964 阅读 · 12 评论 -
【Elasticsearch】安装使用ik中文分词
序言Elasticsearch默认提供的分词器,会把每个汉字分开,而不是我们想要的根据关键词来分词。例如:curl -XPOST "http://localhost:9200/test/_analyze?analyzer=standard&pretty=true&text=我是中国人" 我们会得到这样的结果:原创 2016-05-05 12:38:35 · 942 阅读 · 0 评论 -
【Elasticsearch】基础知识
Elasticsearch有几个核心概念。从一开始理解这些概念会对整个学习过程有莫大的帮助。接近实时(NRT)Elasticsearch是一个接近实时的搜索平台。这意味着,从索引一个文档直到这个文档能够被搜索到有一个轻微的延迟(通常是1秒)。集群(cluster)一个集群就是由一个或多个节点组织在一起,它们共同持有你整个的数据,并一起提供索引和搜索功能。一个集群由一个唯一的名字标识,这个名字原创 2016-05-05 11:30:36 · 5163 阅读 · 0 评论 -
【Linux进阶】Ubuntu 16.04安装ElasticSearch
在阅读这篇文章之前,你应该是对ElasticSearch有一定了解的,或者可以先通过文章末尾的链接了解ES是什么环境搭建Ubuntu 14.04.5 LTSElasticsearch 2.4.4jdk1.7.0_76安装我们先从Elastic的官网下载ES的安装包wget https://download.elastic.co/elasticsearch/release/org/elasti原创 2017-06-05 18:48:58 · 11372 阅读 · 0 评论 -
【Elasticsearch】常见问题汇总——持续更新
分页结果起点超过结果窗口Caused by: QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to: [10000] but was [10020]. See the scroll api for a more efficient way to reques原创 2017-08-15 17:51:43 · 3304 阅读 · 0 评论