Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
algoliasearch-railsを用いて検索機能を実装してみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
TN
January 15, 2020
Technology
1.8k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
algoliasearch-railsを用いて検索機能を実装してみた
1/15(水) あなたの知ってるRubyGemsTips イベントLT資料
TN
January 15, 2020
Other Decks in Technology
See All in Technology
2026_devsumi_ozono.pdf
o3
3
520
作って終わりじゃないサーバーレス 〜9年運用する大規模EC物流API基盤の設計・運用のリアル〜
zozotech
PRO
0
180
LTのテーマ どうきめてる?〜5つの型と私のやり方〜
yama3133
1
110
Claude Codeを「使うほど育つ」AI秘書にするノウハウ
minorun365
PRO
31
28k
AgentCore Runtime上にAgentic Coding基盤を構築・展開する際の設計ポイントと限界点 / Design considerations and limitations when building an agentic coding platform on AgentCore Runtime
har1101
5
330
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
5
25k
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
250
負債のメタファと2026年 / Debt Metaphor in Agentic Engineering Age 202609 Edition
twada
PRO
10
4.1k
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
4
670
データ界隈LT祭 第1回LT登壇
taromatsui_cccmkhd
2
1.5k
バイブコーディング時代のWebアプリ開発入門~Cloud Runで学ぶセキュアなビルドとデプロイ
waiwai2111
1
140
「守り」で活用するオンデバイスLLM 〜写ってはいけないを総力戦で防ぐ〜 / iOSDC Japan 2026
nakamuuu
0
170
Featured
See All Featured
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
550
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
670
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Between Models and Reality
mayunak
4
460
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
530
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Transcript
‘algoliasearch-rails’を用いて 検索機能を実装してみた 株式会社オープンエイト 中野 翼
自己紹介 中野 翼 2019年 2月 オープンエイトへジョイン メディア事業のサーバーサイド →新規事業のサーバーサイド 最近興味があること:React、Redux
Elasticsearchでの課題 ・比較的学習コストが高い ・チューニング出来る人が限られてしまう ・検索結果を分析したいんだけど、どうしたら... ・Scoreって何の値ですか...
何かいいものは無いだろうか・・・
そうだ!Algoliaをつかってみよう
Algoliaとは • サイト内の全文検索や、商品データベースの検索な どに特化したサービス • サービス内のコンテンツデータをAlgoliaサーバにアップ ロードすることで、API経由でコンテンツデータに対して 全文検索を行うことが出来る • 2019年5月に日本法人を設立、導入企業には
Cookpadなどがある
Algoliaのうり • GUIとAPIのどちらでも検索ロジックを柔軟に設定可能 • 世界各地にデータセンターがあるため、高速な検索結果 を提供 • GUI上で検索結果を分析出来る • 様々なプログラミング言語向けにAPIを提供
良さそう
Railsに導入してみた READMEより抜粋 gem’algoliasearch-rails’をbundle install config/initializers/algoliasearch.rb
設定はこれだけ
None
検索でどんなデータが返ってきてるのか見れたり
検索での重み付けや表記揺れの修正もGUI上で可能
コードで設定したい場合
非同期でデータをindex登録したい
出来ます!(例:Sidekiqを使用した場合) 一部READMEより抜粋
関連モデルからのデータもindexに登録したい
出来ます!
まとめ • Algoliaとは、モバイルアプリやWebサービスに導入 することで、全文検索エンジンが利用できるSaaS • Documentが丁寧で導入が思ったより簡単で驚き ました • 位置情報による検索などもあるので、試してみた い