当前位置:网站首页>kibana 搜索语法
kibana 搜索语法
2022-04-22 05:34:00 【新猿一马】
目录
一 字段搜索
限定字段全文搜索 :field:value
精确搜索 :filed:"value"(关键字加上双引号 )
字段本身是否存在
_exists_:http :返回结果中需要有 http 字段
_missing_:http :不能含有 http 字段
二 通配符
? 匹配单个字符
* 匹配0到多个字符
kiba?a, el*search
? * 不能用作第一个字符,例如 :?text *text
三 正则
es支持部分正则功能
mesg:/mes{2}ages?/
四 模糊搜索
~ : 在一个单词后面加上~启用模糊搜索
first~ 也能匹配到 frist
五 近似搜索
在短语后面加上~
"select where"~3 表示 select 和 where 中间隔着3个单词以内。
六 范围搜索
数值和时间类型的字段可以对某一范围进行查询
status:[200 TO 400]
date:{"now-6h" TO "now"}
[ ] 表示端点数值包含在范围内,{ } 表示端点数值不包含在范围内。
七 逻辑操作
AND
OR
+ :搜索结果中必须包含此项
- :不能含有此项
+apache -jakarta test :结果中必须存在 apache,不能有 jakarta,test 可有可无。
八 分组
(jakarta OR apache) AND jakarta
字段分组
title:(+return +"pink panther")
九 转义特殊字符
+ - && || ! () {} [] ^" ~ * ? : \
以上字符当作值搜索的时候需要用\转义
十 lucene 语法参考
微信公众号:「新猿一马」,微信扫一扫。

版权声明
本文为[新猿一马]所创,转载请带上原文链接,感谢
https://blog.csdn.net/jack1liu/article/details/102531714
边栏推荐
猜你喜欢
![[fedmd, a heterogeneous FL training method using model distillation] fedmd: heterogeneous federated learning via model distillation](/img/25/210dd6b74fe555a819097b97721983.png)
[fedmd, a heterogeneous FL training method using model distillation] fedmd: heterogeneous federated learning via model distillation

MySQL Basics

使用easyexcel导出excel表格

Five important properties of binary tree

C语言练习(2)——链表实现多项式加法

环形链表2

Integer source code

判断链表是否有环

IDEA debug高级操作

Force buckle - 300 Longest increasing subsequence
随机推荐
C语言期中复习训练
剑指 Offer 22. 链表中倒数第k个节点
IDEA debug高级操作
New tips for JS in 2022
1.计算a+b
fastjson判断JSON字符串是Object还是List<Object>
【无标题】GBase 8s V8.8 SQL 指南:教程-6
使用easyexcel导出excel表格
2022 Niuke winter vacation supplementary question record 2
Establishment, addition, deletion, modification and query of sequence table
GBase 8s V8. 8 SQL Guide: tutorial-5.2 (3)
Do you know the implementation of strcpy?
DolphinDB VSCode 插件使用教程
Network attack and Defense Security Learning Platform - upload key 3
多线程Executors的使用
随机字符串工具类RandomStringUtils详解
JUC并发编程
How to use U deep boot U disk to clear the system login password
Fundamentals of graphics - flood
MySQL Chapter 7 complex query of data table