Home

Awesome

<h1 align="center">firestore-meilisearch</h1> <p align="center"> <img src="https://raw.githubusercontent.com/meilisearch/integration-guides/main/assets/logos/meilisearch_firebase.svg" alt="Meilisearch-Firestore" width="200" height="200" /> </p> <h1 align="center">Meilisearch Firestore</h1> <h4 align="center"> <a href="https://github.com/meilisearch/meilisearch">Meilisearch</a> | <a href="https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=github&utm_medium=firestore-meilisearch">Meilisearch Cloud</a> | <a href="https://docs.meilisearch.com">Documentation</a> | <a href="https://discord.meilisearch.com">Discord</a> | <a href="https://roadmap.meilisearch.com/tabs/1-under-consideration">Roadmap</a> | <a href="https://www.meilisearch.com">Website</a> | <a href="https://docs.meilisearch.com/faq">FAQ</a> </h4> <p align="center"> <a href="https://github.com/meilisearch/firestore-meilisearch/actions"><img src="https://github.com/meilisearch/firestore-meilisearch/workflows/Tests/badge.svg" alt="Test"></a> <a href="https://github.com/meilisearch/firestore-meilisearch/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a> <a href="https://ms-bors.herokuapp.com/repositories/8"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a> </p> <p align="center">⚡ The Meilisearch API extension written for Firebase</p>

Search in your Firestore content with Meilisearch

Author: Meilisearch (https://meilisearch.com)

Description: Full-text Search on Firebase with Meilisearch

Details: Use this extension to synchronize documents from a Cloud Firestore collection to a Meilisearch index. This allows you to use full-text search in your Cloud Firestore documents.

This extension listens to each creation, update, or deletion of your documents to keep them in sync with your Meilisearch index. This ensures that the data in Meilisearch mirrors your content in Cloud Firestore. You can then run queries on this mirrored dataset.

Note that this extension only listens for changes to documents in a specific collection, but not changes in any subcollection. However, you can install additional instances of this extension to listen to other collections in your Firestore database.

⚡ Supercharge your Meilisearch experience

Say goodbye to server deployment and manual updates with Meilisearch Cloud. Get started with a 14-day free trial! No credit card required.

Additional setup

Before installing this extension, you'll need to:

Data import format

Documents indexed in Meilisearch must have an unique id. Meilisearch uses Firestore's default field: Document ID for this purpose, and renames it to_firestore_id.

Important: If your documents contain a field called _firestore_id, it will be ignored.

If you are using GeoPoint, the field should be named _geo to be recognized by Meilisearch for geosearch.

Backfill your Meilisearch data

This extension does not export all existing documents into Meilisearch unless they have been modified or created after its installation. You can run the import script provided by this extension to retrieve your Meilisearch dataset with all the documents present in your Firestore collection

Billing

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

When you use Firebase extensions, you're only charged for the underlying resources that you use. A paid-tier billing plan is only required if the extension uses a service that requires a paid-tier plan, for example calling a Google Cloud API or making outbound network requests to non-Google services. All Firebase services offer a free tier of usage. Learn more about Firebase billing.

Configuration Parameters:

Cloud Functions:


🧩 Install this extension

Console

Install this extension in your Firebase project

Firebase CLI

firebase ext:install meilisearch/firestore-meilisearch --project=[your-project-id]

Learn more about installing extensions in the Firebase Extensions documentation: console, CLI


🤖 Compatibility with Meilisearch

This package guarantees compatibility with version v1.x of Meilisearch, but some features may not be present. Please check the issues for more info.

⚙️ Development Workflow and Contributing

Any new contribution is more than welcome in this project!

If you want to know more about the development workflow or wish to contribute, please see our contributing guidelines for detailed instructions!

<hr>

Meilisearch provides and maintains many SDKs and Integration tools like this one. We want to provide everyone with an amazing search experience for any kind of project. If you wish to contribute, make suggestions, or want to know what's going on right now, visit the integration-guides repository.