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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
40
Convergence of Communities: OKD = f(Kubernetes++)
dicortazar
0
49
Are you sure you're measuring what you want to measure?
dicortazar
0
30
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
43
The Xen Code Review Process: An Industrial Approach
dicortazar
0
32
Software Development Analytics, an Introduction
dicortazar
0
40
Defining a Metrics Strategy in Open Source Projects
dicortazar
0
36
Other Decks in Technology
See All in Technology
OCI技術資料 : 証明書サービス概要
ocise
1
7.2k
Cortex Code君、今日から内製化支援担当ね。
coco_se
0
120
Embeddings : Symfony AI en pratique
lyrixx
0
440
The essence of decision-making lies in primary data
kaminashi
0
220
契約書からの情報抽出を行うLLMのスループットを、バッチ処理を用いて最大40%改善した話
sansantech
PRO
3
340
Blue/Green Deployment を用いた PostgreSQL のメジャーバージョンアップ
kkato1
1
220
MIX AUDIO EN BROADCAST
ralpherick
0
140
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
77k
Databricks Lakehouse Federationで 運用負荷ゼロのデータ連携
nek0128
0
110
マルチモーダル非構造データとの闘い
shibuiwilliam
1
140
Sansanの認証基盤を支えるアーキテクチャとその振り返り
sansantech
PRO
1
150
Bref でサービスを運用している話
sgash708
0
220
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
320
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Marketing to machines
jonoalderson
1
5.1k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
68
38k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
230
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
500
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
700
Everyday Curiosity
cassininazir
0
180
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
310
Odyssey Design
rkendrick25
PRO
2
560
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
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