当前位置:网站首页>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边栏推荐
- SDUT 2446 final ranking
- [wechat applet] project practice - lottery application
- Use of Ogg parameter filter [urgent]
- C language input string with spaces
- Xu Ziyang, President of ZTE: 5nm chip will be launched in 2021
- AP AUTOSAR platform design 3 architecture
- string matching
- SDUT 2446 最终排名
- Pl/sql server syntax explanation
- 最短路专题
猜你喜欢
![[wechat applet] project practice - lottery application](/img/7b/a0545f077259b3dc971dc246813177.png)
[wechat applet] project practice - lottery application

机器人技术(RoboCup 2D)如何进行一场球赛

最短路专题

多线程与高并发(三)—— 源码解析 AQS 原理

ACM寒假集训#6

Idea packages jar packages and runs jar package commands
![[application of stack] - infix expression to suffix expression](/img/c1/879716342f6dd5eaa8b79c752eca16.png)
[application of stack] - infix expression to suffix expression

Install Office customization. Troubleshooting during installation
![Implement a queue with two stacks [C language]](/img/8a/679575bb0a562eff7e4317e64b4790.png)
Implement a queue with two stacks [C language]

Yarn报错:Exception message: /bin/bash: line 0: fg: no job control
随机推荐
SQL Server 2016 学习记录 --- 数据定义
SemEval 2022 | 将知识引入NER系统,阿里达摩院获最佳论文奖
中芯国际科创板IPO顺利过会,市值有望突破2000亿!
The 11th Blue Bridge Cup Undergraduate group competition (20200321)
SDUT 2446 最终排名
Chapter 1: cross end development of small programs of uniapp ----- create a uniapp project
C语言 输入带空格的字符串
ACM寒假集训#7
IDEA创建我的第一个项目
2020第二届传智杯初赛
6、MapReduce自定义分区实现
IDEA打包jar包及运行jar包命令
SDUT Round 9 2020 Spring Festival campaign
Idea packages jar packages and runs jar package commands
SQL Server 2016 学习记录 --- 嵌套查询
阿里云镜像地址
Codeforces Round #614 (Div. 2) A. ConneR and the A.R.C. Markland-N
[application of stack] - infix expression to suffix expression
2020 second intelligence cup preliminaries
2. Output one of the repeated numbers in the array