npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

firestore-meilisearch

v0.3.0

Published

<h1 align="center">firestore-meilisearch</h1>

Downloads

16

Readme

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

  • 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 or Google Cloud services which may have associated charges if you exceed the service’s free tier:
    • Cloud Firestore
    • Cloud Functions (Node.js 10+ runtime. See FAQs)

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 location: Where do you want to deploy the functions created for this extension? If you need help selecting a location, refer to the location selection guide.

  • Collection path: What is the path of the collection you would like to export into Meilisearch?

  • Fields to index in Meilisearch: What fields do you want to index in Meilisearch? Create a comma-separated list of the field names, or leave it blank to include all fields. The id field is always indexed even when omitted from the list.

  • Meilisearch Index Name: What Meilisearch index do you want to index your data in?

  • Meilisearch host: What is the URL of the host of your Meilisearch database? Make sure your URL starts with http:// or https://

  • Meilisearch API key: What is your Meilisearch API key with permission to perform actions on indexes? Both the API keys and the master key are valid choices but we strongly recommend using an API key for security purposes. Check out our guide on security.

Cloud Functions:

  • indexingWorker: Cloud function triggered by document modification in Firestore to import changes into Meilisearch.

🧩 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!

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.