---
title: "Discussion on \"I fixed my hospital directory's broken search (without over-engineering it)\" | Hashnode"
description: "Discussion on \"I fixed my hospital directory's broken search (without over-engineering it)\". I replaced regex with MongoDB text indexes, added autocomplete and a \"Did you mean?\" fallback. My hospital directory search now handles typos well."
url: "https://hashnode.com/posts/how-i-fixed-my-hospital-director-s-broken-search/6a72052d2a72c9227075fc3f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I fixed my hospital directory's broken search (without over-engineering it)](https://mikkyprestige.hashnode.dev/how-i-fixed-my-hospital-director-s-broken-search?utm_source=hashnode&utm_medium=feed)

I replaced regex with MongoDB text indexes, added autocomplete and a "Did you mean?" fallback. My hospital directory search now handles typos well.

Aug 4 · 4 min read · mikkyprestige.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#search](https://hashnode.com/tag/search)
-   [#performance](https://hashnode.com/tag/performance)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Elue Michael](https://hashnode.com/@MikkyPrestige)

@MikkyPrestige · Remote

  
[View profile](https://hashnode.com/@MikkyPrestige)

Software Engineer

Let’s play fifa

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
