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개의 좋아요

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개의 좋아요

실제 투입된 노력의 수준이 궁금합니다. 검색 기능의 일부로 지식 베이스를 구축하기 위해 비슷한 수준의 노력이 필요할 것으로 예상됩니다.

1개의 좋아요

저도 Discourse 검색 기능을 확장하여 다른 검색 엔진의 검색 결과를 포함할 수 있기를 원합니다. 관련 내용을 조사해 보았지만, Discourse의 이 부분은 문서화가 거의 되어 있지 않아 플러그인을 만드는 것이 쉽지 않습니다. 소스 코드를 직접 수정하여 개념 증명(Proof of Concept)은 해 보았지만, 이는 당연히 바람직한 방법이 아닙니다.

수년에 걸쳐 이러한 기능에 대한 요청이 여러 번 있었습니다:

Discourse의 검색 기능 자체에 결과를 통합하려는 경우, 여전히 Algolia를 사용할 수 있다고 생각합니다. 하지만 이 솔루션은 상당한 노력이 필요합니다(예: 어떤 사이트의 결과를 우선적으로 표시할지 우선순위를 어떻게 정할 것이며, 올바른 메타데이터가 쉽게 이용 가능하고 항상 최신 상태인지 등). 또한 추가 비용(Algolia 라이선스)이 발생합니다.

외부 콘텐츠로 사용자를 유도하는 무료이며 유지보수 및 노력이 적은 옵션은 몇 년 전 Discourse에 의뢰하여 확장한 Advanced search bar 확장 기능입니다. 기본적으로 외부 사이트가 검색에 표준 URL 쿼리를 사용하는 경우 이 옵션과 호환됩니다.

즉, 해당 사이트의 검색 URL이 다음과 같은 형태인가요?

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

그렇다면 이 구성 요소가 작동합니다.

다음 게시물에서 어떻게 작동하는지 보여드립니다:

그리고 다음 게시물에서는 설정 방법에 대해 조금 더 자세히 문서화했습니다:

이 방법을 시도해 보고 질문이 있으시면 여기서 기꺼이 답변해 드리겠습니다 :slight_smile:

2개의 좋아요