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
67
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
38
Convergence of Communities: OKD = f(Kubernetes++)
dicortazar
0
38
Are you sure you're measuring what you want to measure?
dicortazar
0
29
InnerSource Patterns: A set of proven solutions to InnerSource problems
dicortazar
0
49
Are Maturity Models needed in Inner Source?
dicortazar
0
40
Defining a Metrics Strategy and Measuring Collaboration
dicortazar
1
39
The Xen Code Review Process: An Industrial Approach
dicortazar
0
31
Software Development Analytics, an Introduction
dicortazar
0
39
Defining a Metrics Strategy in Open Source Projects
dicortazar
0
32
Other Decks in Technology
See All in Technology
AIのグローバルトレンド2025 #scrummikawa / global ai trend
kyonmm
PRO
1
260
[ JAWS-UG 東京 CommunityBuilders Night #2 ]SlackとAmazon Q Developerで 運用効率化を模索する
sh_fk2
3
380
5年目から始める Vue3 サイト改善 #frontendo
tacck
PRO
3
210
Agile PBL at New Grads Trainings
kawaguti
PRO
1
390
2025年夏 コーディングエージェントを統べる者
nwiizo
0
140
react-callを使ってダイヤログをいろんなとこで再利用しよう!
shinaps
1
230
AWSで始める実践Dagster入門
kitagawaz
1
580
DDD集約とサービスコンテキスト境界との関係性
pandayumi
3
280
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
740
allow_retry と Arel.sql / allow_retry and Arel.sql
euglena1215
1
160
大「個人開発サービス」時代に僕たちはどう生きるか
sotarok
20
9.7k
MCPで変わる Amebaデザインシステム「Spindle」の開発
spindle
PRO
3
3.2k
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
Bash Introduction
62gerente
615
210k
Agile that works and the tools we love
rasmusluckow
330
21k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
Practical Orchestrator
shlominoach
190
11k
Git: the NoSQL Database
bkeepers
PRO
431
66k
A Tale of Four Properties
chriscoyier
160
23k
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