The discussion explores how to include Discourse forum search results in WordPress searches. lkramer asks if it’s possible to display relevant Discourse threads alongside WordPress articles in search results. erlend_sh suggests using search engines like Elasticsearch or Algolia, while simon proposes querying the Discourse API directly. lkramer decides to try the API approach and later shares a solution in a new thread here. tobias eigen expresses interest in the outcome for his community.
Let’s say you loads of informative articles in the Wordpress part of your site and then of course loads of informative conversations in the Discourse part of your site.
When you type a phrase into the Wordpress search box, it would be really cool if relevant Discourse threads could come up in addition to the relevant Wordpress articles.
Has anyone found a clever way to do this? This is not a deal breaker of course. It would just be really useful.
It could also be done by making a search request to Discourse through the Discourse API and including the results of that request with the WordPress search results.