![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elastic
文章平均质量分 55
Ricky_Huo
曾经是个全栈,立志于不做全栈
展开
-
Elasticsearch深度分页问题以及Scroll查询的一些总结
背景介绍我们在 Elasticsearch API的基础上实现了一个日志查询系统,支持最基本的时间范围选择以及关键词搜索高亮,并且日志展示的表格支持异步分页。有天用户反馈,查询的时候页面报错Result window is too large, from + size must be less than or equal to: [10000] but was [24600]. See th...原创 2020-01-09 15:11:18 · 1251 阅读 · 0 评论 -
使用Python往Elasticsearch插入数据
使用Python往Elasticsearch插入数据 在这里,我使用Elasticsearch官方推荐elasticsearch第三方包来讲述插入数据的两种方法。1. index 这是很简单的一个插入数据的方法,每条数据调用一个index方法,代码如下from datetime import datetimefrom elasticsearch import Elasticsearches原创 2016-05-05 17:11:42 · 24197 阅读 · 2 评论 -
Elasticsearch CURL操作方法
Elasticsearch curl操作_cat操作curl localhost:9200/_cat=^.^=/_cat/allocation/_cat/shards/_cat/shards/{index}/_cat/master/_cat/nodes//获得集群的所有节点/_cat/indices//获得集群所有的index/_cat/indices/{index}/_ca原创 2016-12-01 16:57:43 · 2698 阅读 · 0 评论 -
Spark API Java编程使用方法
Spark API Java编程使用方法如何使用mapUse lambda syntaxJavaDStream<String> lines = messages.map(s -> s.substring(0, 5))Implement the Function interfaces// Function[T1, R]JavaDStream<String> lines = messages.原创 2017-03-03 17:28:43 · 3893 阅读 · 0 评论 -
Elasticsearch query_string语法查询
Elasticsearch query_string语法查询1.根据字段名查询(Field names)接口(interface)为app interface: app接口(interface)为app或live interface: (app OR live)精确匹配, 接口是app interface: “app”2.通配符(Fuzziness)‘?’表示单个字符,’*’表示0个或原创 2016-12-14 16:03:25 · 9384 阅读 · 0 评论 -
Elasticsearch 6.3 X-PACK SQL Overview
Elasticsearch 6.3 X-PACK SQL Overview Elasticsearch SQL aims to provide a powerful yet lightweight SQL interface to Elasticsearch写在前面 However the backing engine itself is Elasticsearch fo...原创 2018-08-02 17:33:46 · 4826 阅读 · 0 评论 -
Elasticsearch Rolling up historical data Overview
Elasticsearch Rolling up historical dataOverview And while we continue to believe that most data tends to have value over a long period of time, the relative value of the data can decrease as ...原创 2018-08-08 11:14:29 · 1213 阅读 · 0 评论 -
如何使用Spark快速将数据写入Elasticsearch
如何使用Spark快速将数据写入Elasticsearch说到数据写入Elasticsearch,最先想到的肯定是Logstash。Logstash因为其简单上手、可扩展、可伸缩等优点被广大用户接受。但是尺有所短,寸有所长,Logstash肯定也有它无法适用的应用场景,比如:海量数据ETL海量数据聚合多源数据处理为了满足这些场景,很多同学都会选择Spark,借助Spark算子进行数据...原创 2018-12-11 23:57:23 · 9385 阅读 · 0 评论 -
ElasticSearch pinyin分词支持多音字
ElasticSearch pinyin分词支持多音字背景我们有一个搜索业务底层采用ElasticSearch作为搜索引擎,在索引的过程中,使用了ik中文分词、拼音分词、同义词等多种分词器。ES和各种插件的组合已经能满足我们线上90%的需求,但是仍有部分需求无法覆盖,我们在拼音分词的时候过程中就遇到了无法解决的问题。比如在 三一重工 中,一重 这个词在拼音词库 polyphone.txt 中...原创 2019-03-28 19:29:06 · 3857 阅读 · 2 评论