Build Get to market quickly and securely with products that can scale globally
どうも miup です。 この記事は Firebase Advent Calendar 2017 の11日目の記事です。この記事では先日弊社で行われた Firebase.Yebisu #1 での自分の発表の補足的な感じの記事です。 はじめに Firebase には RealtimeDB と Cloud FireStore の2種類のデータベースが用意されています。 これらはどちらも NoSQL のドキュメント指向データベースであり、クエリが弱いです。 FireStore の方は多少マシなのですが、それでも2つのキーに対してレンジを指定できないなど実際のサービスで利用されるような検索を実装するには機能が足りません。 そこでいい感じの検索エンジンである Algolia にいい感じにデータを流していい感じの検索を実装してみようというのがこの記事のコンセプトです。 本題に入る前に Algolia
2019/05/06追記 この記事は古いです 当サイトはMiddlemanからGatsbyに移行したため、この記事の内容は古くなっております。 動作デモはありませんが、Middleman製サイトに検索機能を実装する場合にはこのまま続きをお読み下さい。 現サイトで運用されているGatsby製サイトに検索機能を実装する場合はこちらの記事を参照して下さい。 — Gatsby製サイトにAlgoliaのサイト内検索を実装する | WEB EGG — ブログをMiddlemanからGatsbyに乗り換えた雑感 | WEB EGG こんにちは。 当ブログのサイト内検索をしたことある方はお気づきかもしれませんが、サイト内検索にAlgoliaを利用しています。 (後述の事情により月初に使えなくなることがたまにありますが)動作速度もかなり早く、安定して稼働してます。 運用コストもゼロで、記事書いてPRをマージ
今回作ったのはこちらになります 今回は必要最低限のAlgoliaの使い方を載せています。 もっと専門的なことをやりたいという方は公式などにもいろいろ載っているので参考にしてください。 Algolia自体が検索に加えて、リサーチなどもしてくれる機能もあり、大手の検索エンジンを持っているところなども使っているということで拡張性もとてもいいです。 Algoliaとは 検索APIのひとつでFirebase以外にも自前でデータをアップロードすれば簡単に検索機能を実装することができます。 Algoliaのセットアップ APIキーの確認 まずはAlgoloaのアカウントを作ります。 そこでAPIキーを後で使うのでメモっておきましょう。 Application ID Search-OnlyAPI Admin API Key(*この記事では使いません) インデックスを作成 今回は簡単に「sample」をいう
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く