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. Session 4: Querying ElasticSearch
Search
Daniel Izquierdo Cortazar
April 21, 2017
Technology
0
48
Data Science Master. ElasticSearch and Kibana. Session 4: Querying ElasticSearch
Introduction to the REST API provided by ElasticSearch.
Daniel Izquierdo Cortazar
April 21, 2017
Tweet
Share
More Decks by Daniel Izquierdo Cortazar
See All by Daniel Izquierdo Cortazar
Beyond the 10%. Analysis of the gender-diversity gap.
dicortazar
0
28
Convergence of Communities: OKD = f(Kubernetes++)
dicortazar
0
23
Are you sure you're measuring what you want to measure?
dicortazar
0
20
InnerSource Patterns: A set of proven solutions to InnerSource problems
dicortazar
0
41
Are Maturity Models needed in Inner Source?
dicortazar
0
28
Defining a Metrics Strategy and Measuring Collaboration
dicortazar
1
25
The Xen Code Review Process: An Industrial Approach
dicortazar
0
21
Software Development Analytics, an Introduction
dicortazar
0
15
Defining a Metrics Strategy in Open Source Projects
dicortazar
0
22
Other Decks in Technology
See All in Technology
複雑な構成要素を持つUIとの向き合い方 〜新・支出グラフでの実例〜 / B43 TECH TALK
nakamuuu
0
140
Janus
bkuhlmann
1
490
テストプロセスで大事にしていること #jasstnano
makky_tyuyan
0
170
ゼロから始めるVue.jsコミュニティ貢献 / first-vuejs-community-contribution-link-and-motivation
lmi
1
120
NgRx Signal Store
rainerhahnekamp
0
150
エンジニアのキャリアをちょっと楽しくする3本の軸/Three Pillars to Make an Engineer's Career More Enjoyable
kwappa
0
2.7k
On Your Data を超えていく!
hirotomotaguchi
2
660
20240416_devopsdaystokyo
kzkmaeda
1
220
開発パフォーマンスを最大化するための開発体制
ham0215
2
300
ChatworkのSRE部って実は 半分くらいPlatform Engineering部かもしれない
saramune
0
160
長期運用プロジェクトでのMySQLからTiDB移行の検証
colopl
2
840
Cloud Native Java with Spring Boot (CNCF Aarhus, April 2024)
thomasvitale
1
170
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
36
2.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
KATA
mclloyd
15
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
The Invisible Side of Design
smashingmag
294
49k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
YesSQL, Process and Tooling at Scale
rocio
164
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
Building Effective Engineering Teams - LeadDev
addyosmani
28
1.8k
The Cult of Friendly URLs
andyhume
74
5.7k
Being A Developer After 40
akosma
57
580k
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