technologies / elasticsearch

Search That Survives Real Inventory

Elasticsearch is what we reach for when a relational database stops being a search engine — faceted counts, shape-based geo queries, typo-tolerant autocomplete at map-pan speed — kept honestly in sync with the database that stays the source of truth.

Faceted geo search over a whole MLS inventory
Map-pan speed
Index-to-database drift, reported by the build that runs it
4× daily
Our SQL-to-Elasticsearch playbook is an open guide
Published

the thesis

A Second Data Store Is A Real Cost

Elasticsearch is not a checkbox on a stack list. It is a second data store that can drift from your first one — and it should be added when search earns that cost, not before.

The production system behind this page carries the honest version of the argument inside its own codebase. The build's first search backend was the database — and that early implementation survives as deprecated code, which is the fairest record of how the decision actually went. Faceted counts across a whole property inventory, draw-your-own-boundary geo queries, and autocomplete that forgives typos at map-pan speed won the argument; SQL full-text lost it slowly, feature by feature.

What we bring from that build is less the queries than the discipline around them. The index is never the source of truth — the database is, and the system reports the gap between them four times a day so drift is a number on a dashboard instead of a customer complaint. Relevance is tuned against real queries, mappings are versioned and rebuildable, and every piece of the sync pipeline assumes the feed upstream will eventually misbehave, because it did.

The counter-case is the first thing we'll tell you: until search is genuinely your bottleneck, your database's own full-text search is the right answer, and we've written that argument up at guide length — when SQL stops working, what breaks first, and what the migration honestly costs.

Faceted searchGeo queriesTypo-tolerant autocompleteRelevance tuningSync & drift disciplineAggregations

argued both ways

Where Elasticsearch earns its place — and where it loses.

we reach for it when

Search a relational database can no longer carry — faceted counts, shape-based geo queries, typo-tolerant autocomplete — at interactive speed over real inventory.

we argue against it when

It is a second data store that can drift from your first. Until search is genuinely the bottleneck, your database's own full-text search is still the right answer.

the proof

Where Elasticsearch has already shipped.

The search core of a published build, plus the playbook written from work like it. Its faceted, geo-shaped, typo-tolerant search runs on Elasticsearch at map-pan speed — and the guide below is our honest account of when SQL search stops working and what the migration really costs.

What we build with Elasticsearch.

Search-Backed Consumer Portals

The whole surface a search product stands on — filters that translate to indexable URLs, facet counts that stay truthful, and results that answer in the time a map pan allows.

Map-First Geo Search

Shape-based queries against real geography — draw-a-boundary search, radius filters, and layers on the same map as the results, the pattern our shipped portal runs in production.

Product & Inventory Search

Catalogue search where relevance is revenue — synonyms, typo tolerance, business-rule boosting, and the analytics loop that shows what users searched and didn't find.

Index & Sync Pipelines

The unglamorous half that decides everything: mappings designed for the queries, reindex paths that don't need downtime, and drift between store and index measured instead of assumed.

Search Rescues & Relevance Tuning

Existing Elasticsearch installs that answer slowly or rank badly — profiled, remapped, and tuned against real query logs rather than intuition.

The Honest No

The assessment that ends with 'keep Postgres' — a real deliverable, because a second data store you didn't need is pure operational debt. Our published guide is that assessment in article form.

the elasticsearch ecosystem we ship with

Core

Elasticsearch

Source Of Truth

PostgreSQL · MySQL · Redis

Application Layer

Symfony · Laravel · Node.js

Ops

Docker · DigitalOcean · nginx

asked before choosing

Elasticsearch questions, answered straight.

Our database has full-text search. Why isn't that enough?

It often is — and that is genuinely our first answer. It stops being enough when search needs facet counts across the whole result set, geo queries against drawn shapes, typo-tolerant autocomplete, or relevance beyond keyword matching, all at interactive speed. The system behind this page tried the database first; the deprecated code is still in the repository as the receipt.

How do you keep the index and the database in sync?

By refusing to trust it silently. The database stays the source of truth, writes flow to the index through an explicit pipeline rather than hope, mappings are versioned so a full rebuild is a routine operation, and the gap between store and index is measured and reported — in our shipped portal, four times a day. Drift you can see is maintenance; drift you can't is a slow-motion outage.

What does Elasticsearch cost to run?

More than a library and less than its reputation — the real costs are memory, the second deployment to monitor, and the sync pipeline's upkeep. For a single product's search, a modest well-tuned deployment does the job; you scale the index when query volume says so, not on day one. We size it to measurements, and we'll tell you when the answer is that you don't need it yet.

Can you fix our existing search instead of rebuilding it?

Usually, yes. Most bad search is bad mappings and untuned relevance, not a broken engine — fields analyzed wrongly, facets computed against the wrong shape, ranking never tested against real query logs. We profile the slow queries, rework the mapping, and tune scoring against what users actually type. A rebuild is the recommendation only when the data model underneath has to change anyway.

Does search overlap with your AI work?

Directly — retrieval is the load-bearing half of most useful AI features. The same index that powers your product's search can ground a model's answers in your real data, which is why building the search layer well pays twice. The outcome is the point: answers drawn from your inventory, not a model's imagination.

Who owns the cluster and the code?

You do — the deployment runs in your infrastructure, the mappings and pipelines are code in your repository, and IP transfer is in the contract. Search is too close to the product's heart to rent from a vendor you can't leave.

Search box turning users away?

Send the queries users type and what they get back. The reply names what is fixable in your current stack and what genuinely needs an index — with the honest option that it's 'nothing yet'.