This is just brainstorming==Summary
MediaWiki.org search results only show results from content within the wiki, but not other sources of discussion and documentation. Integrating Wikimedia Space search results would allow MediaWiki.org users to search and potentially find more information from the Wikimedia movement related to technical and social news and discussion.
==Requirements
When a user searches at Special:Search they are presented with the on-wiki search results and in addition to relevant search results from Wikimedia Space. Users can opt-out of viewing the Space search results via some easily accessible method such as via a preference or user profile CSS rule. Wikis can opt-in to include search results. Users can also search Space results by enabling a filter in advanced search.
Search results are indexed in ElasticSearch and are kept up-to-date the same as the on-wiki index. Search results have the proper relevancy (via scoring). The excerpt for each matching result will have the query highlighted in bold. The inclusion of search results can be made configurable in a per-wiki basis.
==Feature
Search results from Wikimedia Space should include the following metadata:
* Title of the topic on Space
* Contextual excerpt that is returned for the keyword searched
* Date of publication
* Category and tags
====Examples
Searching for "test" returns:
<Topic title>
<excerpt>
<date of publication> <categories> <tags>
==Benefit
Users who are new to the movement may assume that all movement knowledge is kept on-wiki. This is not the case. The inclusion of Wikimedia Space provides more centralized results in what people are looking for. It also provides for more awareness of Wikimedia Space as a venue for news, help, and discussion. Movement organizers can also provide more insight into their discussions, events, and activities if they choose to use Wikimedia Space over alternatives (such as Facebook or Twitter) that can not be indexed.
Acceptance Criteria
MVP of search would show results from Space next to existing results, perhaps with simply the title of the Space topic.
A complete, stable extension can do the above as described with compatibility with all major browsers, but would it make sense to show Discourse topics in mediawiki.org search?functionality with javascript disbled, aria compliant, And would it be technically possible?and with support for RTL languages.
==Design
Similar to the "Results from sister projects" sidebar in current Wikimedia search results. It would be no less relevant than displaying Flow threads (they are used for a similar purposePerhaps as a new section below, Discourse just works better)."Results from Wikimedia Space"
See also
* https://docs.discourse.org/#tag/Search
* https://www.elastic.co/products/elasticsearch
* https://www.mediawiki.org/wiki/Extension:CirrusSearch
* https://www.mediawiki.org/wiki/Help:CirrusSearch
* https://meta.discourse.org/t/how-to-add-forum-search-results-to-wordpress-search/68782
(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 [[ https://discourse-mediawiki.wmflabs.org/t/mirroring-mediawiki-l-wikitech-l-and-other-tech-mailing-lists/999 | 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 ([[ https://docs.discourse.org/#tag/Search | docs ]], [[ https://meta.discourse.org/t/discourse-api-documentation/22706 | intro ]]) and we have a UI to offer related search results.
See how others have integrated [[ https://meta.discourse.org/t/how-to-add-forum-search-results-to-wordpress-search/68782 | Discourse search results in WordPress ]] (another PHP application).
Maybe this could be a project for an internship or a contractor?