Page MenuHomePhabricator

Integrate Discourse into mediawiki.org search
Open, LowestPublic

Description

This is just brainstorming, but would it make sense to show Discourse topics in mediawiki.org search? And would it be technically possible? It would be no less relevant than displaying Flow threads (they are used for a similar purpose, Discourse just works better).

(Extended description from a duplicated request)

Inspired by https://www.mediawiki.org/wiki/Cross-wiki_Search_Result_Improvements/Design ...

Imagine that users with question searching in MediaWiki.org would obtain results of https://discourse-mediawiki.wmflabs.org/ as well. Wouldn't that be useful? Now imagine that this Discourse forum would contain not only technical questions, but also the archives of our technical mailing lists. Wouldn't that be very useful, and awesome?

Technically speaking, it seems we have all the building blocks needed. Discourse has a Search API (docs, intro) and we have a UI to offer related search results.

See how others have integrated Discourse search results in WordPress (another PHP application).

Maybe this could be a project for an internship or a contractor?

Event Timeline

Tgr created this task.Mar 23 2018, 7:03 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 23 2018, 7:03 PM
Tgr added a subscriber: freephile.Mar 23 2018, 7:06 PM

The current storage format of search is that each mediawiki page is a document. Wrangling external things into this format might technically be possible, but would be a bit of work.

EBjune triaged this task as Lowest priority.Mar 29 2018, 5:09 PM
EBjune moved this task from needs triage to later on... on the Discovery-Search board.

As I understand it, Discourse will output .json if you ask it to. And Elasticsearch only cares about json. So wouldn't the work be to create a new index in Elasticsearch that consumes the .json available from Discourse? (I haven't done this, so I don't know the particulars)

Tgr added a comment.Mar 29 2018, 5:45 PM

As a poor man's substitute we could just add a "search on Discourse" button to the search page (from a default-on gadget, probably).

Qgil updated the task description. (Show Details)Dec 30 2018, 7:51 PM

Sorry, I had missed / forgotten this request when creating a duplicated one. I took the liberty of editing the description to explain possible use cases better.

I think the reference to take is https://www.mediawiki.org/wiki/Cross-wiki_Search_Result_Improvements/Design

I don't know what is the state of the art of displaying related search results, but as a user I think I remember seeing results from other projects in a separate column. The equivalent here would be to see Discourse results in a separate column when showing the results of a query in MediaWiki.org.

[...] I don't know what is the state of the art of displaying related search results, but as a user I think I remember seeing results from other projects in a separate column. The equivalent here would be to see Discourse results in a separate column when showing the results of a query in MediaWiki.org.

Yup. example search on enwiki (works the same in Private window) shows some sister projects in a sidebar.

This task is likely to be morphed for Space.