Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Data Science Master. ElasticSearch and Kibana....
Search
Daniel Izquierdo Cortazar
April 21, 2017
Technology
69
0
Share
Data Science Master. ElasticSearch and Kibana. Session 4: Querying ElasticSearch
Introduction to the REST API provided by ElasticSearch.
Daniel Izquierdo Cortazar
April 21, 2017
More Decks by Daniel Izquierdo Cortazar
See All by Daniel Izquierdo Cortazar
Beyond the 10%. Analysis of the gender-diversity gap.
dicortazar
0
41
Convergence of Communities: OKD = f(Kubernetes++)
dicortazar
0
49
Are you sure you're measuring what you want to measure?
dicortazar
0
31
InnerSource Patterns: A set of proven solutions to InnerSource problems
dicortazar
0
59
Are Maturity Models needed in Inner Source?
dicortazar
0
48
Defining a Metrics Strategy and Measuring Collaboration
dicortazar
1
44
The Xen Code Review Process: An Industrial Approach
dicortazar
0
33
Software Development Analytics, an Introduction
dicortazar
0
40
Defining a Metrics Strategy in Open Source Projects
dicortazar
0
37
Other Decks in Technology
See All in Technology
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
760
シン・リスコフの置換原則 〜現代風に考えるSOLIDの原則〜
jinwatanabe
0
190
NgRx SignalStore: The Power of Extensibility
rainerhahnekamp
0
220
ADOTで始めるサーバレスアーキテクチャのオブザーバビリティ
alchemy1115
3
280
Introduction to Bill One Development Engineer
sansan33
PRO
0
400
生成AI時代のエンジニア育成 変わる時代と変わらないコト
starfish719
0
660
AIエージェントを構築して感じた、AI時代のCDKとの向き合い方
smt7174
1
220
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
180
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
74k
AI時代に新卒採用、はじめました/junior-engineer-never-die
dmnlk
0
250
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Deep Space Network (abreviated)
tonyrice
0
110
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Code Review Best Practice
trishagee
74
20k
Thoughts on Productivity
jonyablonski
76
5.1k
Designing Experiences People Love
moore
143
24k
Everyday Curiosity
cassininazir
0
190
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
220
How STYLIGHT went responsive
nonsquared
100
6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Transcript
Querying ElasticSearch Daniel Izquierdo Cortázar
[email protected]
/ @dizquierdo Bitergia
Outline Introduction ElasticSearch DSL Python Examples Daniel Izquierdo Cortázar Máster
en Data Science. ETSII. 2
ElasticSearch DSL Two main contexts: Query: looking for matches How
well does this document match with this query? Filter: filtering data as in SQL Does this document match with this query? Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 3
ElasticSearch DSL And we can match, term or range queries
So we can query + match or filter + term. Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 4
ElasticSearch DSL Match: accepts text/numerics/dates GET /_search { "query": {
"match" : { "message" : "this is a test" } } } Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 5
ElasticSearch DSL Term: look for the exact value GET my_index/my_type/_search
{ "query": { "term": { "status": "open" } } } Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 6
ElasticSearch DSL Ranges: numerics and dates GET _search { "query":
{ "range" : { "date" : { "gte" : "now-1d/d", "lt" : "now/d" } } } } Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 7
ElasticSearch DSL Example of use https://github.com/dicortazar/ipython-notebooks/blob/master/teaching/masterdatascience/OPNFV%20Metrics%20with%20E lasticSearch%20DSL.ipynb Daniel Izquierdo Cortázar
Máster en Data Science. ETSII. 8