# Change search endpoint

**URL:** <https://meta.discourse.org/t/change-search-endpoint/320698>\
**Category:** Development\
**Created:** [August 8, 2024, 8:53am UTC](https://meta.discourse.org/t/change-search-endpoint/320698 "2024-08-08T08:53:29Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

In the Development category, [Jukebo](/t/-/320698/1) asked for the easiest method to change the Google search endpoint in Discourse to route results to a different search engine, inquiring if a simple plugin could achieve this. [Moin](/t/-/320698/2) responded by suggesting that existing theme components designed to replace Google search could serve as examples, specifically linking to discussions on [Baidu search](/t/-/320698/2) and [DuckDuckGo search suggestions](/t/-/320698/2). [Jukebo](/t/-/320698/3) confirmed that these resources were exactly what they were looking for and expressed gratitude.

<div class="post-metadata">

**Author:** ![Jukebo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jukebo/32/423583_2.png) [@Jukebo](https://meta.discourse.org/u/Jukebo)\
**Post date:** [August 8, 2024, 8:53am UTC](https://meta.discourse.org/t/change-search-endpoint/320698/1 "2024-08-08T08:53:29Z")

</div>

Hi!

What would be the easiest way to change the endpoint in the google-search

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/google-search.hbs](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/google-search.hbs)

I would need to route the google search results to different search engine.

Would a simple plugin be able to do this and how?

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [August 8, 2024, 9:03am UTC](https://meta.discourse.org/t/change-search-endpoint/320698/2 "2024-08-08T09:03:38Z")

</div>

There are theme components that replace Google search:

> [@Baidu Search](https://meta.discourse.org/t/baidu-search/170283):
>
> discourse2Summary Baidu Search is specific for Chinese sites whose users cannot use the usual Google search.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-baidu-search](https://github.com/discourse/discourse-baidu-search)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features After installing and activating the component remember also to update the js.search.search\_google and js.search.or\_search\_google strings (from /admin/customiz…

> [@DuckDuckGo Search Suggestions](https://meta.discourse.org/t/duckduckgo-search-suggestions/83902):
>
> Solves [Is there a way to suggest DuckDuckGo instead of Google for failed search UI?](https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895). A Discourse theme component to use DuckDuckGo as the suggested search system, instead of Google! p.s. You’ll probably want to customize some of the text strings to stop mentioning Google, too.

Maybe you can use those as examples

---

<div class="post-metadata">

**Author:** ![Jukebo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jukebo/32/423583_2.png) [@Jukebo](https://meta.discourse.org/u/Jukebo)\
**Post date:** [August 8, 2024, 10:31am UTC](https://meta.discourse.org/t/change-search-endpoint/320698/3 "2024-08-08T10:31:04Z")

</div>

Exactly what i was looking for. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [September 7, 2024, 10:31am UTC](https://meta.discourse.org/t/change-search-endpoint/320698/4 "2024-09-07T10:31:36Z")

</div>

Closed on September 7, 2024, 10:31am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
