# Replace the search bar with a third-party one

**URL:** <https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918>\
**Category:** Development\
**Created:** [August 27, 2021, 3:26pm UTC](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918 "2021-08-27T15:26:21Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

In the Development category, [taraness](/t/-/201918/1) seeks guidance on replacing the native Discourse search bar with a custom third-party solution or adding one elsewhere via a theme, explicitly excluding standard engines like Google or Bing. [anon73664359](/t/-/201918/2) suggests an existing theme component for multi-engine search, but [taraness](/t/-/201918/3) clarifies that this does not meet their specific requirement for a complete replacement with a non-standard provider. [Falco](/t/-/201918/4) recommends the "Add Algolia search to your Discourse" plugin as a viable example of how to achieve a full search bar replacement.

<div class="post-metadata">

**Author:** ![taraness](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taraness/32/232444_2.png) [@taraness](https://meta.discourse.org/u/taraness)\
**Post date:** [August 27, 2021, 3:26pm UTC](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918/1 "2021-08-27T15:26:21Z")

</div>

Hello there,

Thanks for clicking on this. I am quite new to Discourse, and I’m looking for some guidance. What is the best way to either:

- Replace the Discourse search bar with a third-party one
- If the above isn’t possible, add a third-party search bar elsewhere within a theme

I understand this may not fall within the realm of best practices, but I just want to hear what you folks have to say.

Thanks so much,  
Tara

---

<div class="post-metadata">

**Author:** ![anon73664359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon73664359](https://meta.discourse.org/u/anon73664359)\
**Post date:** [August 27, 2021, 3:31pm UTC](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918/2 "2021-08-27T15:31:48Z")

</div>

Are you looking for something like this?

> [@Search with Bing/Yahoo/DuckDuckGo](https://meta.discourse.org/t/search-with-bing-yahoo-duckduckgo/138881):
>
> When you’re looking for a thread and no results are found, you’ll be offered to search using Google. I think that you should be able to change the search engine (in preferences) from Google to one of the other three “major” search engines. Maybe administrators could have the option to disallow users from changing the search engine? Maybe administrators could change the default search engine to Bing, Yahoo, or DuckDuckGo (or back to Google if they ever feel like it)? Feel free to ask for more i…

---

<div class="post-metadata">

**Author:** ![taraness](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taraness/32/232444_2.png) [@taraness](https://meta.discourse.org/u/taraness)\
**Post date:** [August 27, 2021, 3:47pm UTC](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918/3 "2021-08-27T15:47:27Z")

</div>

Thank you for your reply! I tested the theme component in question, and while it looks interesting, it isn’t what I am looking for. I want to completely replace the Discourse search bar with a third-party search bar (that isn’t Google, Bing, Yahoo, etc.).

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [August 27, 2021, 3:48pm UTC](https://meta.discourse.org/t/replace-the-search-bar-with-a-third-party-one/201918/4 "2021-08-27T15:48:51Z")

</div>

The [Add Algolia search to your Discourse](https://meta.discourse.org/t/add-algolia-search-to-your-discourse/73517) plugin does exactly that. You can use it for inspiration.
