Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Let_s_Go_Talk__6__GoのLT会_.pdf
Search
虎の穴ラボ株式会社
January 19, 2023
Technology
0
120
Let_s_Go_Talk__6__GoのLT会_.pdf
Let's Go Talk #6 (GoのLT会)の発表資料になります。
https://connehito.connpass.com/event/270615/
虎の穴ラボ株式会社
January 19, 2023
Tweet
Share
More Decks by 虎の穴ラボ株式会社
See All by 虎の穴ラボ株式会社
Tailwind CSSとAtomic Designで実現する効率的な Web 開発の事例
toranoana
1
560
Denoについて、同人誌記事を出しました+update
toranoana
0
190
【虎の穴ラボ Tech Talk #2】プロンプトエンジニアリング
toranoana
0
120
20241121_[TechTalk#2]虎の穴ラボでのLLMについて取り組み紹介
toranoana
0
110
社内チャットへRAG導入した話(Tech Talk #2)
toranoana
0
190
Deno Deploy で Web Cache API を 使えるようになったので試した知見
toranoana
1
590
【虎の穴ラボ Tech Talk】虎の穴ラボTech Talk説明資料
toranoana
0
420
虎の穴ラボ Tech Talk_CDKでFargate環境構築
toranoana
1
460
虎の穴ラボスキルアップ支援制度の利用例
toranoana
0
8.8k
Other Decks in Technology
See All in Technology
[2025-12-12]あの日僕が見た胡蝶の夢 〜人の夢は終わらねェ AIによるパフォーマンスチューニングのすゝめ〜
tosite
0
180
Authlete で実装する MCP OAuth 認可サーバー #CIMD の実装を添えて
watahani
0
180
Microsoft Agent Frameworkの可観測性
tomokusaba
1
110
_第4回__AIxIoTビジネス共創ラボ紹介資料_20251203.pdf
iotcomjpadmin
0
130
日本Rubyの会: これまでとこれから
snoozer05
PRO
6
240
M&Aで拡大し続けるGENDAのデータ活用を促すためのDatabricks権限管理 / AEON TECH HUB #22
genda
0
240
AI駆動開発ライフサイクル(AI-DLC)の始め方
ryansbcho79
0
180
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
120
日本の AI 開発と世界の潮流 / GenAI Development in Japan
hariby
1
440
さくらのクラウド開発ふりかえり2025
kazeburo
2
1.2k
Strands Agents × インタリーブ思考 で変わるAIエージェント設計 / Strands Agents x Interleaved Thinking AI Agents
takanorig
5
2.1k
202512_AIoT.pdf
iotcomjpadmin
0
140
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
Are puppies a ranking factor?
jonoalderson
0
2.4k
Typedesign – Prime Four
hannesfritz
42
2.9k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
580
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
0
950
BBQ
matthewcrist
89
9.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
4 Signs Your Business is Dying
shpigford
186
22k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
250
Transcript
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. GoからOpenSearchServiceを 使ってみる
虎の穴ラボ株式会社 浜田拓実 (sheltie) 2023 Let's Go Talk #6 (GoのLT会)
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. 自己紹介 浜田
拓実(ハマダ タクミ) • 2022/06 入社 • 虎の穴ラボ 通販チーム エンジニア Goを始めたきっかけ • 社内勉強会でGoが取り上げられた • 昨年末よりGoでWebアプリを作り始める
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. アジェンダ •
作成物の概要 • OpenSearchについて • ドキュメントの登録 • ドキュメントの検索 • 注意点 • まとめ
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. 作成物の概要 ・楽天APIから商品情報を日次で取得
・取得データをOpenSearchに登録 ・キーワードでOpenSearchを検索 GoとOpenSearchの練習のため作成
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. OpenSearchについて
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. OpenSearchについて OpenSearchとは・・・
• ElasticSearchをフォークして 開発が行われている • データ検索、分析、可視化が可能。 • 100%オープンソース
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. OpenSearchについて Goから利用する
• 公式から環境構築のDockerサンプルが 提供されている • Go クライアントが提供されている
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. OpenSearchについて Dockerサンプル
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. Goから利用する (ドキュメントの登録)
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. ドキュメントの登録 公式サンプルを利用する
• Goクライアントを利用した実装例 • CRUD操作を一通り実施
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. ドキュメントの登録 APIはJSON形式でやりとり
• APIのパラメータに適した 構造体の定義 • json.Marshal / Unmarshalを利用 • JSON-to-GoでJSONを構造体に変換 https://mholt.github.io/json-to-go/
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. ドキュメントの登録 実際の実装内容
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. Goから利用する (ドキュメントの検索)
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. ドキュメントの検索 公式サンプルを利用する
• こちらもJSON形式でやりとり • 独特な検索クエリに慣れる必要あり
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. ドキュメントの検索 実際の実装内容(前半)
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. ドキュメントの検索 実際の実装内容(後半)
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. 注意点
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. 注意点 大量のドキュメントをループで登録中、以下のようなエラーが発生
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. 注意点 公式サンプルとの相違点
• 更新サンプルはレスポンスを 閉じる処理が省略されている • Go Packagesのサンプルでは レスポンスを閉じる処理有り レスポンスを閉じないと、 先ほどのエラーが発生するため注意
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. まとめ
Copyright (C) 2020 Toranoana Inc. All Rights Reserved. まとめ GoからOpenSearchを取り扱うのは比較的簡単
・OpenSearch、Go共にサンプルが充実 ・Goクライアントが用意されている ・GoとJSONの相性が良い(気がする) OpenSearchはGoと相性の良い 検索エンジンだと感じました