是否可能搜索外部网站?

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 个赞

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 个赞
2 个赞

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 个赞

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 个赞

我也希望能够扩展 Discourse 的搜索功能,使其包含来自其他搜索引擎的搜索结果。我对此进行了一些研究,但 Discourse 的这部分似乎文档很少,并且很难为其制作插件。我通过直接编辑源代码制作了一个概念验证,但这显然是不可取的。

多年来,一直有不少人呼吁实现这样的功能:

如果您想将结果集成到 Discourse 的搜索本身,我认为您仍然可以使用 Algolia,但该解决方案需要大量工作(例如,如何确定显示哪些站点的结果的优先级,以及是否可以轻松获得正确的元数据并且始终是最新的?)并且需要额外的成本(Algolia 许可)。

一个免费、低维护和省力的方法是将用户引导至外部内容,那就是我们几年前委托 Discourse 扩展的“高级搜索栏”插件。基本上,如果外部站点使用标准的 URL 查询进行搜索,它就兼容此选项。

我的意思是,它们的搜索 URL 看起来像这样吗?

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

如果是,那么此组件将起作用。

这里有一篇帖子,我展示了它的工作原理:

这里有一篇帖子,我记录了更多关于如何设置它的信息:

如果您尝试一下并有任何疑问,我很乐意在此回答 :slight_smile:

2 个赞