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
70
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
45
Convergence of Communities: OKD = f(Kubernetes++)
dicortazar
0
50
Are you sure you're measuring what you want to measure?
dicortazar
0
35
InnerSource Patterns: A set of proven solutions to InnerSource problems
dicortazar
0
59
Are Maturity Models needed in Inner Source?
dicortazar
0
52
Defining a Metrics Strategy and Measuring Collaboration
dicortazar
1
54
The Xen Code Review Process: An Industrial Approach
dicortazar
0
41
Software Development Analytics, an Introduction
dicortazar
0
43
Defining a Metrics Strategy in Open Source Projects
dicortazar
0
43
Other Decks in Technology
See All in Technology
サプライチェーンセキュリティの空白地帯 - 信頼できる”依存性”の未来を考える
rung
PRO
2
510
Kiro CLI v2.0.0がやってきた!
kentapapa
0
230
oracle-to-databricks-migration-with-llm-and-dbt
casek
1
380
AI フレンドリーなエラー監視を TypeScript で実現する
shinyaigeek
2
190
GitHub Copilot CLIでWebアクセシビリティを改善した話
tomokusaba
0
140
関西に縁あるMicrosoft MVPsが語るCopilotの未来
kasada
0
570
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.8k
AI Adaptable なテストを整える工夫 / Ways to Make Your Tests AI-Adaptable
bitkey
PRO
2
180
AI駆動開発でなんでもハンズオン環境をつくってみた
yoshimi0227
0
180
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
350
Fabric-cicd によるAzure DevOps デプロイ
ryomaru0825
0
160
ルールやカスタム機能、どう使う?理想の出力を引き出すために今知りたいIBM Bob 5つの機能
muehara
0
150
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
120
The World Runs on Bad Software
bkeepers
PRO
72
12k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
170
How to Talk to Developers About Accessibility
jct
2
210
How to make the Groovebox
asonas
2
2.2k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
160
Site-Speed That Sticks
csswizardry
13
1.2k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
350
Tell your own story through comics
letsgokoyo
1
930
Mobile First: as difficult as doing things right
swwweet
225
10k
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