
es
xuejidong
这个作者很懒,什么都没留下…
展开
-
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 阅读 · 0 评论 -
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 · 3205 阅读 · 0 评论 -
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 · 1102 阅读 · 0 评论 -
es list 踩坑一则
获取的文档list 是排序过了的,在录入es时无论什么顺序 再获取的时候从doc里面拿到的 都是有序的。除非去ctx._source里面拿。不过读硬盘 又太慢。原创 2020-05-06 15:00:34 · 1031 阅读 · 0 评论