当前位置:网站首页>Lucene query syntax memo
Lucene query syntax memo
2022-07-28 10:38:00 【Two dogs don't run】
Syntax reference :
Simple query example :
# Full text search Exception
Exception
# Specify query fields message Inside Exception
message: Exception
# Search for phrases
message: "java.lang.NullPointerException"
# whatever message The fields all contain Exception
message\*: Exception
# The use of wildcards ,? Instead of a single character ,* Replace zero or more characters
message: Exceptio*
# Regular expressions are expressed by using / Surround , It can be embedded in the query string
message: /Ex?(cep[tion])/
# Another regular use , Match means 「 Two non abc Any character of 」
info.recallId: /[^abc]{2}/
Examples of complex queries :
# Support AND, OR, NOT, Or you could write it as &&, ||, ! The operator
message: ((Exception AND Error) OR (Error AND Exception) OR Error) AND NOT Exception
# contain lucene But does not contain elasticsearch
lucene NOT elasticsearch
# + Must contain , Others are optional ,lucene Must contain ,apache not essential ...
+lucene apache
# Operation symbols that cannot appear "-", Contains lucence, But does not contain apache...
+lucene-apache
Range query example :
# [min TO max] It's a closed interval
# {min TO max} It's open range
@timestamp: [1510536210000 TO 1510550000000]
# * Indicates that there is no limit on one end
count:[10 TO *]
Escape query example ::
# Example
message: "domain\=jobmd_ent4ent"
# Escape character
+-=&&||><!(){}[]^"~*?:\/
Fuzzy query example :
# mastering book Elasticsearch It will also be considered a match
title: "mastering Elasticsearch"~2边栏推荐
- SQL Server 2016 learning record - nested query
- 14. Double pointer - the container that holds the most water
- The 11th Blue Bridge Cup Undergraduate group competition (20200321)
- Xu Ziyang, President of ZTE: 5nm chip will be launched in 2021
- ACM winter vacation training 6
- 机器人技术(RoboCup 2D)如何进行一场球赛
- How to write Ogg with multiple filter syntax?
- 6. Double pointer -- the sum of the two numbers of the incremental array is equal to the target number
- 【微信小程序】项目实战—抽签应用
- Use of Ogg parameter filter [urgent]
猜你喜欢
随机推荐
GKLinearCongruentialRandomSource
5、Window端实现Mapreduce程序完成wordcount功能
SDUT Round #9 2020-新春大作战
Hurun released the 2020 top 10 Chinese chip design private enterprises: Huawei Hisilicon did not appear on the list!
Inverse element & combinatorial number & fast power
胡润发布2020中国芯片设计10强民营企业:华为海思竟然没有上榜!
最短路专题
Ueeditor v1.4.3 control file compression
试题 历届试题 发现环
Idea packages jar packages and runs jar package commands
Powerful and unique! Yingzhong technology 2020 10th generation core unique product launch
9. Delete nodes in the linked list
SQL Server 2016 learning records - single table query
Chapter 1: cross end development of small programs of uniapp ----- create a uniapp project
SQL Server 2016 learning records - connection query
20200217训练赛 L1 - 7 2019来了 (20分)
20200217 training match L1 - 7 2019 is coming (20 points)
7. MapReduce custom sorting implementation
安装office自定义项 安装期间出错 解决办法
ogg里用多个filter语法应该怎么写?









![[application of stack] - infix expression to suffix expression](/img/c1/879716342f6dd5eaa8b79c752eca16.png)