上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页
摘要: 转自:https://www.cnblogs.com/clonen/p/6674922.html 顾名思义,best_field就是获取最佳匹配的field,另个可以通过tie_breaker来控制其他field的得分,boost可以设置权重(默认都为1)。 下面从宏观上来讲的简单公式: score 阅读全文
posted @ 2020-03-18 10:44 kuroniko 阅读(833) 评论(0) 推荐(1) 编辑
摘要: 网上查了很多文章说要删除 dump.rdb nodes.conf 如果有aof文件也要删除然后再通过 redis-trib.rb 命令重新建一次集群,这种方法历史数据全部丢了,不推荐。 我试了下先把redis cluster 的节点 7001 7002 7003 7004 7005 7006 停掉。 阅读全文
posted @ 2020-03-13 13:58 kuroniko 阅读(1761) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE reportblockdetail ADD KEY taskcode (taskcode)ALTER TABLE reportblockdetail DROP KEY taskcode 嗯这确实是比较容易混淆的地方。在我们使用MySQL中可能压根不会注意这个问题,因为大多数情 阅读全文
posted @ 2020-03-10 13:22 kuroniko 阅读(396) 评论(1) 推荐(0) 编辑
摘要: 第一个文章 https://www.jdon.com/49366 在分布式系统中,重试是不可避免的,我们经常使用后台跑定时进行数据同步,同步不成功就实现重试,重试次数多少取决于你追求一致性还是可用性,如果希望两个系统之前无论如何都必须一致,那么你设置重试次数为无限,当然这是理想情况,实际情况是有重试 阅读全文
posted @ 2020-03-06 18:48 kuroniko 阅读(6759) 评论(0) 推荐(0) 编辑
摘要: 所用jar包Classifier4j,下载地址:https://download.csdn.net/download/dreamzuora/10853888 /** * */package test; import net.sf.classifier4J.summariser.SimpleSumma 阅读全文
posted @ 2020-03-03 16:55 kuroniko 阅读(985) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-03-02 17:50 kuroniko 阅读(429) 评论(0) 推荐(0) 编辑
摘要: [Solution] Update firewall policy 1) Disabled docker rules of iptables docker will create rules of iptables automatically. # vim /etc/docker/daemon.js 阅读全文
posted @ 2020-02-27 18:28 kuroniko 阅读(838) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000019753737?utm_source=tag-newest 1、结构化搜索 1.1 精确值查找 过滤器很重要,因为它们执行速度非常快,不会计算相关度(直接跳过了整个评分阶段)而且很容易被缓存。请尽可能多的使用过滤式查询。 ter 阅读全文
posted @ 2020-02-21 18:28 kuroniko 阅读(460) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/liululee/p/11075432.html 1. 介绍 任何使用过Elasticsearch的人都知道,使用基于rest的搜索API构建查询可能是单调乏味且容易出错的。 在本教程中,我们将研究Jest,一个用于Elasticsearch的HTTP 阅读全文
posted @ 2020-02-21 16:45 kuroniko 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 前言 为了安全性,想redis cluster这种缓存服务最好在限制IP访问的同时,也要设置密码验证。 节点设置密码 1、修改配置文件 在配置文件里面增加密码选项,一定要加上masterauth,不然Redirected的时候会失败。 masterauth redispassword require 阅读全文
posted @ 2020-02-13 09:56 kuroniko 阅读(580) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页