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
0
55
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
32
Convergence of Communities: OKD = f(Kubernetes++)
dicortazar
0
28
Are you sure you're measuring what you want to measure?
dicortazar
0
22
InnerSource Patterns: A set of proven solutions to InnerSource problems
dicortazar
0
46
Are Maturity Models needed in Inner Source?
dicortazar
0
32
Defining a Metrics Strategy and Measuring Collaboration
dicortazar
1
30
The Xen Code Review Process: An Industrial Approach
dicortazar
0
26
Software Development Analytics, an Introduction
dicortazar
0
25
Defining a Metrics Strategy in Open Source Projects
dicortazar
0
22
Other Decks in Technology
See All in Technology
組織成長を加速させるオンボーディングの取り組み
sudoakiy
2
220
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
100
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
日経電子版のStoreKit2フルリニューアル
shimastripe
1
150
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.2k
B2B SaaSから見た最近のC#/.NETの進化
sansantech
PRO
0
930
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
200
【LT】ソフトウェア産業は進化しているのか? #Agilejapan
takabow
0
100
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
110
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6k
Happy Clients
brianwarren
98
6.7k
Automating Front-end Workflow
addyosmani
1366
200k
Fireside Chat
paigeccino
34
3k
For a Future-Friendly Web
brad_frost
175
9.4k
Side Projects
sachag
452
42k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Statistics for Hackers
jakevdp
796
220k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Writing Fast Ruby
sferik
627
61k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
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