Searching an external site possible?

We use discourse for support questions but many answers can be found in our support documents. (it is wordpress based). Was curious if anyone knew of a way or thoughts on making the Discourse search include results from an external site.

Another thought was to try to get links to related support doc articles to show up in a side bar of a post they are looking at or a search they just did. Similar to the “Your topic is similar to…” when creating a topic but with external site content

Anyway curios if anyone knows of any thing someone may have done like that.

Thanks :slight_smile:

4 Likes

Why not move your support pages to a category on Discourse? It’s quiet a common approach to this scenario.

The category could be read-only to normal users and would afford all the benefits you’ve outlined above.

1 Like
2 Likes

Not sure we are ready to give up on all the customization possibilities available with Wordpress, but I had not considered that. Will need to think on it.

1 Like

Curious of level of effort that was to do. We are looking for around the same to hit our KnowledgeBase as part of the Search.

1 Like

I would also like to be able to extend the Discourse search to include search results from other search engines. I’ve looked into it, but this part of Discourse seems quite undocumented and hard to make a plugin for. I’ve made a proof of concept by directly editing the source code, but that is obviously far from desirable.

Over the years there have been quite a few calls for such a feature:

If you want to integrate the results into Discourse’s search itself, I think you can still use algolia, but that solution requires a lot of effort(e.g. how does one prioritise which results from which sites are shown, and is the right metadata easily available and always up to date?) and is an additional cost(algolia licensing).

A free, low maintenance and effort option, which directs users to external content is the Advanced search bar extension which we commissioned Discourse to extend a few years ago. Basically if the external site is using standard url queries for their search, it is compatible with this option.

By this i mean, do their search urls look like this?

https://meta.discourse.org/search?q=this%20is%20my%20search%20term

If yes, then this component will work.

There’s a post here where I show how it works:

and a post here where I document a bit more about how to set it up:

If you give this a go and have any questions I’m happy to answer them here :slight_smile:

2 Likes