随笔分类 - elasticsearch
摘要:{"script":{"source":"ctx._source['owner']=1610"},"query":{"term":{"categoryCId":{"value":807}}}} {"script": { "source": "ctx._source['owner']=124" },
阅读全文
摘要:docker run -dit --name logstash153_60 -v /home/docker/logstash/:/etc/logstash/pipeline logstash:5.6.13 logstash -f /etc/logstash/pipeline/es153_60.con
阅读全文
摘要:使用logstash进行同步的时候报如下错误: 09:08:22.284 [[main]>worker4] INFO logstash.outputs.elasticsearch - retrying failed action with response code: 429 ({"type"=>"
阅读全文
摘要:https://blog.51cto.com/u_15631415/5486714 作者介绍 李猛(ynuosoft),Elastic-stack产品深度用户,ES认证工程师,2012年接触Elasticsearch,对Elastic-Stack开发、架构、运维等方面有深入体验,实践过多种Elast
阅读全文
摘要:curl -XPOST http://15.99.72.165:9200/plan_index/_close curl -XPOST http://15.99.72.165:9200/plan_index/_open curl -XGET http://192.178.1.22:9200/_cat/
阅读全文
摘要:curl -X POST "10.96.6.122:9200/asgard_product_schedule/_delete_by_query" -H 'Content-Type: application/json' -d'{ "query": { "match_all": { } }}'
阅读全文
摘要:elasticsearch集群 graph LR; A(Master Node) B(Data Node); A C(Data Node); B C; Master: 在Elasticsearch中Master仅仅负责维护集群的状态 创建或删除索引 跟踪哪些节点是集群的一部分 决定将哪些碎片分配给哪
阅读全文
摘要:http://keenwon.com/1393.html https://blog.csdn.net/jiahao1186/article/details/81058022 https://www.cnblogs.com/mikeluwen/p/7699421.html https://blog.c
阅读全文
摘要:可以用 update-index-settings API 动态修改副本数: PUT /my_temp_index/_settings { "number_of_replicas": 1 } curl -XPUT http://192.168.0.200:9200/index_execution_2
阅读全文
摘要:如果发现es查询的时候这个错误 在 es.yml加入如下配置,重启es解决 indices.query.bool.max_clause_count: 10240
阅读全文
摘要:在 Elasticsearch 中处理字符串类型的数据时,如果我们想把整个字符串作为一个完整的 term 存储,我们通常会将其类型 type 设定为 keyword。但有时这种设定又会给我们带来麻烦,比如同一个数据再写入时由于没有做好清洗,导致大小写不一致,比如 apple、Apple两个实际都是
阅读全文
摘要:https://blog.csdn.net/chuan442616909/article/details/55505692 重新索引你的数据 尽管可以增加新的类型到索引中,或者增加新的字段到类型中,但是不能添加新的分析器或者对现有的字段做改动。 如果你那么做的话,结果就是那些已经被索引的数据就不正确
阅读全文
摘要:先给以前的index加上别名,并且程序里面也修改一下查询index_execution改为查询index_execution_active curl -XPUT http://15.99.72.167:9200/index_execution/_alias/index_execution_activ
阅读全文
摘要:第一次在普通节点执行没有效果 第二次在master节点执行成功,开始自动分配unassigned的分片 curl -XPOST 'localhost:9200/_cluster/reroute?retry_failed=true'
阅读全文
摘要:之前上海247安装了3个es节点 端口分别是 9300 9301 9302 重庆也安装了3个es节点但是是3台不同服务器分别安装一个节点es 15.99.72.153:9300 15.99.72.154:9300 15.99.72.162:9300 但是重庆3个节点都关了 其中247的9300和93
阅读全文
摘要:转自:https://www.cnblogs.com/clonen/p/6674922.html 顾名思义,best_field就是获取最佳匹配的field,另个可以通过tie_breaker来控制其他field的得分,boost可以设置权重(默认都为1)。 下面从宏观上来讲的简单公式: score
阅读全文
摘要:1,先 wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v5.6.13/elasticsearch-analysis-ik-5.6.13.zip 把ik的zip下载下来 然后把ik的zip包拷贝到es
阅读全文
摘要:https://segmentfault.com/a/1190000019753737?utm_source=tag-newest 1、结构化搜索 1.1 精确值查找 过滤器很重要,因为它们执行速度非常快,不会计算相关度(直接跳过了整个评分阶段)而且很容易被缓存。请尽可能多的使用过滤式查询。 ter
阅读全文
摘要:https://www.cnblogs.com/liululee/p/11075432.html 1. 介绍 任何使用过Elasticsearch的人都知道,使用基于rest的搜索API构建查询可能是单调乏味且容易出错的。 在本教程中,我们将研究Jest,一个用于Elasticsearch的HTTP
阅读全文