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
You're not using Elasticsearch?
Search
Timon Vonk
March 13, 2014
Technology
290
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
You're not using Elasticsearch?
An introduction to Elasticsearch 1.0 and how Tolq uses it for its translation memory
Timon Vonk
March 13, 2014
Other Decks in Technology
See All in Technology
AI時代に、人は何を、どう学ぶのか #pbl_pub / What and How Do We Learn in the AI Era?
takaking22
1
180
猫付きpingコマンドを自作
uyuki234
0
280
老害フォレンジッカーはAI羊の夢を見るか?
tadmaddad
0
360
トークンマネジメントでAIにとって働きやすい環境を実現する
hikaruegashira
0
120
tamachi.go 誕生の裏側
rymiyamoto
1
190
Eight Engineering Unit 紹介資料
sansan33
PRO
3
8.2k
まちスペース®とデジタルツインと「まちづくり」
hiro_ogi
0
130
:syncing_time:
sksat
1
100
形式手法特論:Hyperproperty とモデル検査 #kernelvm / Kernel VM Study Tokyo 19th
ytaka23
0
330
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
ホームラボ紹介
y_sera15
0
220
AI画像認識を活用したゲーム内決済処理検証の自動化
gree_tech
PRO
0
100
Featured
See All Featured
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
280
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
WCS-LA-2024
lcolladotor
0
800
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
660
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
480
Discover your Explorer Soul
emna__ayadi
2
1.3k
So, you think you're a good person
axbom
PRO
2
2.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
360
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
300
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
790
Ethics towards AI in product and experience design
skipperchong
2
350
Site-Speed That Sticks
csswizardry
13
1.5k
Transcript
You’re not using ElasticSearch? Timon Vonk (@timonvonk)
About me • CTO @ Tolq, zero effort website translations
• Freelance hacker and consultant
None
The battlefield • Ferret • Xapian • Solr • Postgresql’s
TSVectors • Sphinx • Many more
What is ElasticSearch? • Search engine • Cloud in mind
• JSON API • Scriptable • Nosql • Great for things different than search
Why use it? • Cloud setup out of the box
• Fast indexing • Easy API • On the fly mappings • Very customisable
OMG WHAT IS LUCENE • Java library for search •
Only handles the search bit • Terms based vector algorithm
Making a query • Just send JSON: GET localhost:9200/example/peanuts/_search {
‘query’: { text: { ‘my_field’: ’many search terms’ }}} { took: 5, timed_out: false, _shards: { total: 5, successful: 5, failed: 0 }, hits: [ { _index: “example”, _type: “peanuts”, _score: 0.9, _source: { …data } } ] } }
Other types of queries • Terms, full text, boolean, fuzzy,
geolocation and lots more variants • Filters, aggregations, percolation, suggestions
Analysing • Pre-index and pre-search • This is when scoring
happens • Remove stop words, stemming, other normalisations • You can create your own analysers
Aggregations { “query”: … } { “aggregations”: { “rubyist_stats”: {
“stats”: { “field”: “meetup_visits” } } } } Aggregations are an upgrade over < 1.0 facets
Different kinds • min, max, avg, sum • stats, extended_stats
(all of the above + stdev/ mean) • percentile • counts • … all scriptable!
Also buckets! • Create subsets based on conditions • Nest
aggregations • … aaand scriptable
(Ruby) libraries • Good old Tire deprecated • Stretcher! •
elasticsearch-ruby • Also libraries for Go, Node, Javascript, etc • … it’s just json
How Tolq uses ElasticSearch • Suggest better translations for translators
• Fast access to text and translations for general search
Other fun stuff • Kibana • Hadoop • Hosted, autoscaling
providers
Also, it works great for text search! Thanks! We’ve launched!
http://www.tolq.com And hiring!