当前位置:网站首页>Es index (document name) fuzzy query method (database name fuzzy query method)
Es index (document name) fuzzy query method (database name fuzzy query method)
2022-04-23 20:17:00 【smile-yan】
Problem description
There are now multiple documents , You need to check whether they have a field at the same time , And return all the existing parts to .
for example , Now there are more than one ES file ( It can be understood as a database )
- service-some-2021-11-20
- service-some-2021-11-21
- service-some-2021-11-22
- servoce-some-2021-11-23
Now you need to query one of the four documents json attribute .
resolvent
The solution is very simple , This is what ES The power of , If you fill in when looking up a document source
Parameter is service-some-2021-11-20
Words , Now there is no need to change anywhere else , Just fill in a wildcard ,service-some-*
.
Of course , If you want to query all the documents of a month, it is service-some-2021-11-*
Be specific to *
The parsing of does not need to be managed , You don't need to manually cycle through all the adapted documents , These contents are handed over to ES Just do the background processing .
summary
Try it yourself .
Smileyan
2021.11.23 12:14
版权声明
本文为[smile-yan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210553133438.html
边栏推荐
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
- PHP reference manual string (7.2000 words)
- 使用 WPAD/PAC 和 JScript在win11中进行远程代码执行3
- PCL点云处理之计算两平面交线(五十一)
- [2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
- 【2022】将3D目标检测看作序列预测-Point2Seq: Detecting 3D Objects as Sequences
- Confusion about thread blocking after calling the read () method of wrapper flow
- Openharmony open source developer growth plan, looking for new open source forces that change the world!
- MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
- [problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
猜你喜欢
Notes of Tang Shu's grammar class in postgraduate entrance examination English
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Unity general steps for creating a hyper realistic 3D scene
STM32基础知识
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
Handwritten Google's first generation distributed computing framework MapReduce
考研英语唐叔的语法课笔记
Fundamentals of network communication (LAN, Wan, IP address, port number, protocol, encapsulation and distribution)
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
随机推荐
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
Mysql database - single table query (I)
R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
The flinkcdc reports an error: but this is no longer available on the server
Rédaction de thèses 19: différences entre les thèses de conférence et les thèses périodiques
Remote code execution in Win 11 using wpad / PAC and JScript 1
微信中金财富高端专区安全吗,证券如何开户呢
Grafana shares links with variable parameters
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Unity 模型整体更改材质
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
Mysql database - single table query (II)
STM32 Basics
nc基础用法
PHP reference manual string (7.2000 words)
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions