<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi" -->

---
title: Queries, Part 2: Advanced Searches with Firebase, made...
description: A tutorial demonstrating how to add content/text search to Firebase apps by pairing Firebase with ElasticSearch, since Firebase&#x27;s NoSQL store didn&#x27;t natively...
canonical: https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Queries, Part 2: Advanced Searches with Firebase, made Plug-and-Play Simple | daily.dev
og:description: A tutorial demonstrating how to add content/text search to Firebase apps by pairing Firebase with ElasticSearch, since Firebase&#x27;s NoSQL store didn&#x27;t natively...
og:url: https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi
og:image: https://api.daily.dev/og/posts/xWaRou8WI.png
og:image:alt: Queries, Part 2: Advanced Searches with Firebase, made Plug-and-Play Simple
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Queries, Part 2: Advanced Searches with Firebase, made Plug-and-Play Simple

**[Firebase](https://daily.dev/sources/firebase-blog)** · 5 min read · 0 upvotes · 0 comments

## Summary

A tutorial demonstrating how to add content/text search to Firebase apps by pairing Firebase with ElasticSearch, since Firebase's NoSQL store didn't natively support LIKE-style SQL queries at the time. It walks through indexing Firebase data into ElasticSearch with a Node.js script, querying directly from the client versus routing search requests through a Firebase-based queue, and points to a pre-built open-source library called Flashlight that bundles these scripts together. An update note at the top flags that Firebase later shipped native advanced query functionality that addresses many of these issues.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2014/01/queries-part-2-advanced-searches-with>

## Questions this post answers

### How did people implement full-text search in Firebase before it had native query support?

Developers paired Firebase with ElasticSearch, since Firebase's NoSQL store lacked SQL-style LIKE queries. A Node.js script using node-elasticsearch-client synced Firebase data into ElasticSearch on child_added, child_changed, and child_removed events, then a search queue at /search/request and /search/response let clients push search terms and receive results without directly coupling to ElasticSearch.

_daily.dev surfaces practical patterns like this for developers piecing together search on top of a database that lacks it natively._

### What is the Flashlight library for Firebase?

Flashlight is an MIT-licensed, open-source GitHub repository from the Firebase team that bundles ready-made scripts for indexing Firebase data into ElasticSearch and running searches through a Firebase-backed request/response queue. It is meant to be cloned, configured via a config file, and run as a standalone search service alongside a Firebase app.

_daily.dev helps developers weighing prebuilt search add-ons like this against building their own indexing pipeline._

## Similar posts on daily.dev

- [How to Streamline Search in Web Applications with Elasticsearch](https://daily.dev/posts/how-to-streamline-search-in-web-applications-with-elasticsearch-pes6btyfs) · freeCodeCamp · 2 upvotes · 1 comments
- [New Firestore query engine enables pipelines](https://daily.dev/posts/new-firestore-query-engine-enables-pipelines-qveysfcui) · Google Cloud · 0 upvotes · 0 comments
- [Firestore Adds Pipeline Operations with Over 100 New Query Features](https://daily.dev/posts/firestore-adds-pipeline-operations-with-over-100-new-query-features-dm1dqw0jf) · InfoQ · 0 upvotes · 0 comments
- [Authentication made easy: Building a secure e-commerce shopping cart with Firebase](https://daily.dev/posts/authentication-made-easy-building-a-secure-e-commerce-shopping-cart-with-firebase-pnlz7lysc) · Firebase · 0 upvotes · 0 comments

---

Tags: [#nodejs](https://daily.dev/tags/nodejs), [#firebase](https://daily.dev/tags/firebase), [#elk](https://daily.dev/tags/elk), [#nosql](https://daily.dev/tags/nosql), [#full-text-search](https://daily.dev/tags/full-text-search)

[View this post on daily.dev](https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Queries, Part 2: Advanced Searches with Firebase, made Plug-and-Play Simple","url":"https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi"},"datePublished":"2026-08-23T12:20:15.156Z","dateModified":"2026-08-23T12:28:47.906Z","description":"A tutorial demonstrating how to add content/text search to Firebase apps by pairing Firebase with ElasticSearch, since Firebase's NoSQL store didn't natively...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed721de96163685d26ab7e314be3ebc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed721de96163685d26ab7e314be3ebc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"nodejs,firebase,elk,nosql,full-text-search","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"Queries, Part 2: Advanced Searches with Firebase, made Plug-and-Play Simple"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/queries-part-2-advanced-searches-with-firebase-made-plug-and-play-simple-xwarou8wi#faq","mainEntity":[{"@type":"Question","name":"How did people implement full-text search in Firebase before it had native query support?","acceptedAnswer":{"@type":"Answer","text":"Developers paired Firebase with ElasticSearch, since Firebase's NoSQL store lacked SQL-style LIKE queries. A Node.js script using node-elasticsearch-client synced Firebase data into ElasticSearch on child_added, child_changed, and child_removed events, then a search queue at /search/request and /search/response let clients push search terms and receive results without directly coupling to ElasticSearch. daily.dev surfaces practical patterns like this for developers piecing together search on top of a database that lacks it natively."}},{"@type":"Question","name":"What is the Flashlight library for Firebase?","acceptedAnswer":{"@type":"Answer","text":"Flashlight is an MIT-licensed, open-source GitHub repository from the Firebase team that bundles ready-made scripts for indexing Firebase data into ElasticSearch and running searches through a Firebase-backed request/response queue. It is meant to be cloned, configured via a config file, and run as a standalone search service alongside a Firebase app. daily.dev helps developers weighing prebuilt search add-ons like this against building their own indexing pipeline."}}]}
```

