![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elasticsearch
文章平均质量分 53
JesJiang
这个作者很懒,什么都没留下…
展开
-
从MongoDB到Elasticsearch
参考:https://www.compose.com/articles/transporter-maps-mongodb-to-elasticsearch/https://www.digitalocean.com/community/tutorials/how-to-sync-transformed-data-from-mongodb-to-elasticsearch-with-transporter-on-ubuntu-16-04原创 2020-11-17 16:16:21 · 195 阅读 · 0 评论 -
ELK环境部署
1、安装JDK2、安装Elasticsearch3 、安装Kibana4、安装Logstash注意:版本一致原创 2020-06-22 15:59:12 · 232 阅读 · 0 评论 -
Kibana安装使用
下载官方 https://www.elastic.co/cn/downloads/kibanahttps://mirrors.huaweicloud.com/kibanaElasticsearch 每个版本的 API 可能会有变化,为了保证 Kibana 能够正常访问 ES, 请严格保证两者之间的版本号一致。1、启动 Kibana解压bin/kibana当控制台中输出包含 Server running at http://localhost:5601, 则代表 Kibana 启动成功了,在浏原创 2020-05-09 10:55:09 · 133 阅读 · 0 评论 -
Python之Elasticsearch
1、连接from elasticsearch import Elasticsearch# es = Elasticsearch('127.0.0.1:9200') es = Elasticsearch('xxx.com:80') #域名为http://xxx.com 域名连接必须带:802、插入key = 'time_id_0'es_data = { 'key': key, 'staId': sta_id, 'name': name,原创 2020-06-16 14:14:04 · 333 阅读 · 0 评论 -
Elasticsearch安全认证
6.8之前免费版本并不包含安全认证功能免费版本TLS 功能,可对通信进行加密文件和原生 Realm,可用于创建和管理用户基于角色的访问控制,可用于控制用户对集群 API 和索引的访问权限;通过针对 Kibana Spaces 的安全功能,还可允许在 Kibana 中实现多租户。收费版本包含更丰富的安全功能,比如:日志审计IP过滤LDAP、PKI和活动目录身份验证单点登录身份验证(SAML、Kerberos)基于属性的权限控制字段和文档级别安全性静态数据加密支持需要同时在ES和原创 2020-05-09 10:46:05 · 4920 阅读 · 2 评论 -
ElasticSearch经纬度相关查询
1、最近点查询官方地址POST /index/_search{ "sort": [ { "_geo_distance": { "location": { "lat": 30.77, "lon": 114.22 }, "order": "asc", ...原创 2020-04-29 14:15:20 · 1262 阅读 · 0 评论 -
java实现ElasticSearch通用查询
import io.searchbox.client.JestClient;import io.searchbox.core.Search;import io.searchbox.core.SearchResult;import lombok.extern.slf4j.Slf4j;import org.elasticsearch.index.query.QueryBuilder;impo...原创 2020-05-11 14:09:27 · 902 阅读 · 0 评论 -
ElasticSearch调整内存大小
conf/jvm.options #默认1G-Xms10G-Xmx10G原创 2020-04-26 10:57:47 · 2980 阅读 · 0 评论 -
Result window is too large, from + size must be less than or equal to: [10000]
1、使用elasticsearch做分页查询时,当查询记录超过10000时,会报如下错误:Result window is too large, from + size must be less than or equal to: [10000]elasticsearch默认只能查询到10000index.max_result_windowThe maximum value of fro...原创 2020-04-23 15:05:14 · 222 阅读 · 0 评论 -
ElasticSearch和Cassandra版本查看
查看es版本http://127.0.0.1:9200/版本为6.2.3{ "name" : "127.0.0.1", "cluster_name" : "Test Cluster", "cluster_uuid" : "a251ce74-77f2-4ba9-95a5-73c8ac050192", "version" : { "number" : "6.2.3", ...原创 2020-02-27 15:59:51 · 2254 阅读 · 0 评论 -
ElasticSearch自动生成geo_point索引
pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency>applicatio...原创 2020-02-06 17:45:31 · 1116 阅读 · 0 评论 -
elasticsearch数据导入导出
安装工具elasticdumpnpm install elasticdump -g导出匹配数据elasticdump --input=http://xx.xx.xx.xx:9400/索引名称 --output=query.json --searchBody='{"query":{"match":{"source": "QUKU"}}}'导入匹配数据到新搜索引擎elasticdump...原创 2020-02-04 20:10:16 · 2217 阅读 · 0 评论 -
ElasticSearch常见的报错及解决
1、索引只读all indices on this node will be marked read-onlyFORBIDDEN/12/index read-only / allow delete (api)原因:磁盘空间不够,df -h查看磁盘空间,发现使用了95%,es默认达到95%就全都设置只读解决配置 config/elasticsearch.py# 控制洪水阶段水印。它默......原创 2019-12-25 14:47:06 · 3902 阅读 · 0 评论 -
ElasticSearch集群状态查看命令
1. _cat$ curl localhost:9200/_cat=^.^=/_cat/allocation/_cat/shards/_cat/shards/{index}/_cat/master/_cat/nodes/_cat/indices/_cat/indices/{index}/_cat/segments/_cat/segments/{index}/_cat/cou...原创 2019-12-23 16:13:23 · 2316 阅读 · 1 评论 -
ElasticSearch之客户端TransportClient
maven依赖 <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>transport</artifactId> <version>6.4.3</version> </dependency>...原创 2019-12-23 15:45:12 · 289 阅读 · 0 评论 -
JestClient实现Elasticsearch操作
1、保存并获得_idpublic Object insert(Object doc,String indexName,String type) { Bulk.Builder bulk = new Bulk.Builder(); Index index = new Index.Builder(doc).index(indexName).type(type).build(); bulk....原创 2019-12-10 16:23:50 · 503 阅读 · 0 评论 -
Centos7安装elasticsearch-head插件
1、安装elasticsearch2、安装node下载地址https://nodejs.org/en/download/xz -d xx.tar.xztar -xvf xx.tar测试安装成功[root@localhost tools]# cd node-v10.15.0-linux-x64/bin[root@localhost bin]# ./node -vv10.15.0...原创 2019-01-16 14:13:43 · 461 阅读 · 0 评论 -
Centos安装elassandra
下载 https://github.com/strapdata/elassandra说明文档地址 http://doc.elassandra.io/en/latest/installation.html解压 tar -xzf elassandra-6.2.3.11.tar.gz修改配置文件conf/cassandra.yamlcluster_name: 'First Cluster'...原创 2019-02-20 12:35:31 · 724 阅读 · 0 评论 -
Elasticsearch入门
curl -XGET 'http://localhost:9200/twitter/tweet/_search?q=user:kimchy&pretty=true'twitter是索引的名称tweet是类型的名称pretty是将返回的信息以可读的JSON形式返回{"took": 9,"timed_out": false,"_shards": {"total": 1,"s......原创 2019-03-22 17:05:06 · 222 阅读 · 0 评论 -
ElasticSearch 6.2.3安装Kibana
查看es版本http://127.0.0.1:9200/{ "name" : "127.0.0.1", "cluster_name" : "Test Cluster", "cluster_uuid" : "a251ce74-77f2-4ba9-95a5-73c8ac050192", "version" : { "number" : "6.2.3", "buil...原创 2019-04-26 16:20:20 · 514 阅读 · 0 评论 -
Elasticsearch聚合查询
分组//select max(TEM_Max) from XX group by Station_Id_d{ "size": 0, "aggs": { "avg_score": { "terms": { "field": "Station_Id_d" }, "aggs": { "max_score": {...原创 2019-05-14 14:21:00 · 567 阅读 · 0 评论 -
ElasticSearch索引删除问题
需求,索引错误,需删除索引,创建新索引。由于程序没有停止,我创建了一条索引,系统又创建了1条。{ "error": { "root_cause": [ { "type": "index_not_found_exception", "reason": "no such index",...原创 2019-07-12 13:38:50 · 5997 阅读 · 0 评论 -
ElasticSearch增加geo_point索引字段location
PUT /my_index/_mapping/my_type{ "my_type": { "properties": { "english_title": { "type": "string", "analyzer": "english" } ...原创 2019-07-12 14:07:13 · 5503 阅读 · 0 评论 -
Centos7安装Elasticsearch
1、安装JDK82、安装 Elasticsearch下载 https://www.elastic.co/downloads/elasticsearch解压tar -zxvf elasticsearch-5.6.3.tar.gz -C /home/njyjy原创 2019-01-15 14:56:39 · 306 阅读 · 1 评论