Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다. 자세히 알아보기

Elastic App Search로 검색

Elastic
Made by Elastic

Firestore 컬렉션의 문서를 Elastic App Search로 동기화하여 전체 텍스트 검색을 지원합니다.

이 확장 프로그램의 작동 방식

The Elastic App Search Firestore extension enables comprehensive full-text search for your Firebase applications.

This extension indexes and syncs the documents in a Cloud Firestore collection to an Elastic App Search deployment by creating a Cloud Function which syncs changes in your collection on any write event (any time you create, update, or a delete a document).

Elastic App Search provides a comprehensive API for implementing common search patterns like auto-completed search suggestions and faceted filter navigation. You'll also have tooling so your team can easily track and tweak search relevance based on usage data.

App Search is a part of Elastic Enterprise Search . You'll need an Enterprise Search deployment, which is created and maintained outside of Firebase.

Getting started

  1. Start an Enterprise Search deployment. You can provision one easily with Elastic Cloud on GCP .
  2. Once you have a deployment running, you'll need an App Search Engine to sync to your collection.
  3. Once you've installed the extension and your Firestore collection is synced to App Search, you're ready to start searching !

You can use the App Search Search API for full-text search and everything you need to build a complete search experience: facets, filters, click analytics, query suggestion, relevance tuning and much more.

If you have documents in your collection already, this extension also provides a script for backfilling existing data to App Search.

Billing

To install an extension, your project must be on the Blaze (pay as you go) plan

  • You will be charged a small amount (typically around $0.01/month) for the Firebase resources required by this extension (even if it is not used).
  • This extension uses other Firebase and Google Cloud Platform services, which have associated charges if you exceed the service’s free tier:
  • Cloud Functions (Node.js 10+ runtime. See FAQs )
  • Cloud Firestore
  • Cloud Secret Manager

If you host your Elastic Enterprise Search instance on Elastic Cloud, you will also be responsible for charges associated with that service.

Learn more about Elastic Cloud .

확장 프로그램 설치 방법

Firebase Console 사용

Firebase Console을 사용해 확장 프로그램을 설치하고 관리할 수 있습니다.

Console을 사용해 설치하기

Firebase CLI 사용

Firebase CLI를 사용해 확장 프로그램을 설치하고 관리할 수도 있습니다.

1단계: 다음 npm 명령어를 실행하여 CLI를 설치하거나 최신 CLI 버전으로 업데이트합니다.

npm install -g firebase-tools
작동하지 않는 경우 Firebase CLI 참조 를 살펴보거나 npm 권한 을 변경하세요.

2단계: 새 Firebase 프로젝트 디렉터리를 설정 하거나 기존 디렉터리로 이동합니다.

3단계: 다음을 실행하여 이 확장 프로그램을 확장 프로그램 매니페스트 에 추가합니다.

firebase ext:install elastic/firestore-elastic-app-search --local --project=projectId_or_alias

Step 4 (Optional): Test this extension locally with the Firebase Emulator Suite

firebase emulators:start

5단계: 매니페스트의 확장 프로그램을 프로젝트에 배포 합니다.

firebase deploy --only extensions --project=projectId_or_alias
지원
Cloud Firestore
작성자
라이선스
Apache-2.0
버전
0.4.1