New Firebase Extensions | Search with Algolia

Wing CHAN
2 min readMay 20, 2021

Recently firebase has released new Extensions (Search with Algolia) that allow developers to upload firestore records to Algolia for full text search without having to write their own firebase functions.

Here is how I set up Search with Algolia to upload the contents of title and create_at to Algolia when there are updates to the firestore post collection.

The Extensions is essentially a firebase function, so after you have successfully installed extensions, you will find that the firebase function will have an additional function called ext-firestore-algolia-search-executeIndexOperation by default.

You can use any of the functions that the firebase function has, such as logging.
As shown, when extensions are triggered there will be logging.

Tips

The timestamp of the Firestore data type looks like this in Algolia, it is not an ISO 8601 timestamp, so it cannot be used directly in Algolia for sorting

If you want to sort by created_at, you need to sort by created_at._seconds

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Wing CHAN
Wing CHAN

Written by Wing CHAN

Mobile Dev 📱 iOS, Flutter

No responses yet

Write a response