自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 238

原创 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 3113

原创 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 995

原创 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 369

原创 默认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 1071

原创 es list 踩坑一则

获取的文档list 是排序过了的,在录入es时无论什么顺序 再获取的时候从doc里面拿到的 都是有序的。除非去ctx._source里面拿。不过读硬盘 又太慢。

2020-05-06 15:00:34 990

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除