- 博客(6)
- 收藏
- 关注
原创 es 生成过滤条件 php版
<?phpnamespace app\common\helper\tool\es;/** * es 条件生成 */use app\common\helper\tool\Arrays;class Cd{ /** @var string none */ const NONE = 'none'; /** @var string 等于 */ const EQ = 'eq'; /** @var string 包含 */ const IN = '
2020-05-23 17:19:12
264
原创 es 查询所有符合条件的id
{ "query": { "bool": { "filter": [ ] } }, "size": 0, "aggs": { "value": { "scripted_metric": { "init_script": "params._agg.list = new ArrayList()", "map_script": "params._agg.list.add(doc.id.value);",
2020-05-20 13:45:52
3202
原创 es 插件 求汉明距离
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package org.diexun.plugin;import java.io.IOException;import java.uti
2020-05-19 15:42:04
1100
原创 swoole读取redis服务
<?php error_reporting(E_ALL^E_NOTICE); function ss_get_redis_client($a_config, $s_f) { try{ $o_r = new Redis(); $o_r->connect( $a_config['host'], $a_config['port'], $a_config['timeout'], $a_config['reserved'], $a_co
2020-05-12 14:11:51
408
原创 默认nginx日志查看qps峰值
awk ' {S[$4]++}; END {for(i in S){print S[i],i}}' access.log| sort -rn | head -n 10
2020-05-12 13:46:47
1136
原创 es list 踩坑一则
获取的文档list 是排序过了的,在录入es时无论什么顺序 再获取的时候从doc里面拿到的 都是有序的。除非去ctx._source里面拿。不过读硬盘 又太慢。
2020-05-06 15:00:34
1031
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人