Page MenuHomePhabricator

MediaWiki-SearchComponent
ActivePublic

Watchers

  • This project does not have any watchers.
  • View All

Details

Description

Issues relating to the search engine in MediaWiki core. This includes API, backend code, and user interfaces relating to Special:Search, Special:PrefixIndex, Special:AllPages, and OpenSearch.

For the search engine on Wikipedia and sister projects, see CirrusSearch instead.

Maintained by: Discovery-Search

Recent Activity

Yesterday

dcausse updated subscribers of T402141: Wikidata search box on mobile view takes me to desktop view.

To my knowledge when clicking a search suggestion from an autocomplete drop-down we route to /w/index.php?title=Special%3ASearch&search=$selectedTitle, this will do an extra hop on the "go" feature which should target to the right page if it exists. I'm not sure I remember why this was done this way but possibly to avoid directing to a 404 if the page was deleted (old cached search response?) but rather redirect to fulltext search? @EBernhardson might know more. I'm not entirely clear if you need to do the same for wikibase. As to how it's done I'm not sure, I think some of it is in mediawiki.skinning.typeaheadSearch (esp. urlGenerator.js).

Thu, Aug 21, 4:36 PM · Discovery-Search, MediaWiki-Search, Wikidata-Omega, Wikidata
Bugreporter merged task T402451: User is sent to empty search after accepting then modifying search suggestion to page that does not exist into T333608: [Timebox] Vector 2022 search navigates to the wrong result if you type after selecting an item using arrow keys.
Thu, Aug 21, 1:35 AM · MediaWiki-User-Interface (autocomplete search), MediaWiki-Search, Discovery-Search

Wed, Aug 20

Pppery edited projects for T402451: User is sent to empty search after accepting then modifying search suggestion to page that does not exist, added: MediaWiki-Search, MediaWiki-User-Interface (autocomplete search); removed MediaWiki-General.
Wed, Aug 20, 8:10 PM · MediaWiki-User-Interface (autocomplete search), MediaWiki-Search, Discovery-Search
pfischer edited projects for T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis, added: Discovery-Search (2025.08.15 - 2025.09.05); removed Discovery-Search (2025.07.25 - 2025.08.15).
Wed, Aug 20, 2:38 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Lucas_Werkmeister_WMDE added a comment to T402141: Wikidata search box on mobile view takes me to desktop view.

Yeah, I think we use the url from the response. Should we use mw.Title.newFromText( result.title ).getUrl() instead? (Probably worth checking if the API puts anything special in the returned URL that we’d be interested in preserving.)

Wed, Aug 20, 1:13 PM · Discovery-Search, MediaWiki-Search, Wikidata-Omega, Wikidata
dcausse added a comment to T402141: Wikidata search box on mobile view takes me to desktop view.

Is it possible that the wikibase frontend code is using the url returned by the search endpoint at https://m.wikidata.org/w/api.php?action=wbsearchentities&format=json&search=da&limit=10&errorformat=plaintext&language=fr&uselang=fr&type=item ?
I think that other search frontends generally reconstruct the target URL using mw.config.get( 'wgServer' ) or something similar? I'm definitely not an expert here...

Wed, Aug 20, 1:02 PM · Discovery-Search, MediaWiki-Search, Wikidata-Omega, Wikidata
Arian_Bozorg added a project to T402141: Wikidata search box on mobile view takes me to desktop view: MediaWiki-Search.

Notes:

  • This only happens on desktop
  • On a mobile device you get sent to the desktop and redirected back to the mobile site
Wed, Aug 20, 9:31 AM · Discovery-Search, MediaWiki-Search, Wikidata-Omega, Wikidata

Tue, Aug 19

Jdlrobson-WMF added a comment to T391513: Query for whether there is life on mars doesn't highlight the answer when done internally .

Tagging experience after talking to Olga as we might run this as a small experience tied in with the new upcoming search initiative.

Tue, Aug 19, 8:10 PM · Reader Experience Team, Discovery-Search, MediaWiki-Search
Jdlrobson-WMF added a project to T391513: Query for whether there is life on mars doesn't highlight the answer when done internally : Reader Experience Team.
Tue, Aug 19, 8:10 PM · Reader Experience Team, Discovery-Search, MediaWiki-Search
Jdrewniak edited projects for T391513: Query for whether there is life on mars doesn't highlight the answer when done internally , added: MediaWiki-Search; removed Web-Team-Roadmap.
Tue, Aug 19, 2:10 PM · Reader Experience Team, Discovery-Search, MediaWiki-Search

Mon, Aug 18

TJones closed T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized as Resolved.

Since this only needed a code deploy and not a re-index, it went out pretty quickly. claſsclass on enwiki now, along with all the other test cases on enwiki and enwikt.

Mon, Aug 18, 2:42 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
TJones added a comment to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized.

@Ioaxxere I wouldn't say that the "normalizer" tries S before s for ſ.. rather, there is accidental normalization because ſ is one of the few characters where lowercase(uppercase(char)) != char. It was the lack of explicit normalization that caused the problem... every individual step makes sense in general, but their edge cases happened to line up just right in this instance.

Mon, Aug 18, 2:34 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)

Fri, Aug 15

Bewfip moved T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis from Closed to Extensions/Skins on the Chinese-Sites board.
Fri, Aug 15, 9:20 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Bewfip reopened T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis as "Open".
Fri, Aug 15, 9:19 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Ioaxxere added a comment to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized.

@TJones Thanks for the writeup. So it seems like the paradoxical situation arises because, in response to ſ, the normalizer tries S before s. Given that ſ is always s and never S in actual usage, this seems suboptimal, so I support the early normalization idea. But I am really surprised that all of your benchmarks showed string operations taking at least a full microsecond (an eon by modern CPU standards), including when nothing is changed at all! Is it possible that the actual performance killer is just PHP overhead? It seems like PHP supports FFI, though I doubt it will come to that.

Fri, Aug 15, 7:46 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
Aklapper changed the subtype of T280728: Widget not found on search pages from "Task" to "Production Error".
Fri, Aug 15, 1:18 PM · JavaScript, MediaWiki-Search, Discovery-ARCHIVED, Wikimedia-production-error, Discovery-Search
Shizhao moved T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis from Extensions/Skins to Closed on the Chinese-Sites board.
Fri, Aug 15, 3:13 AM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search

Thu, Aug 14

Scardenasmolinar merged task T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis into T396231: Inconsistent namespace display names between HTML and JavaScript in NamespaceInputWidget.
Thu, Aug 14, 6:34 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search

Tue, Aug 12

neriah moved T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis from Untriaged to Translation of namespaces, magic words, etc. on the I18n board.
Tue, Aug 12, 5:55 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search

Mon, Aug 11

Bewfip added a comment to T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis.

I agree with T174057#4578576 that where to use UI language instead of content language for namespace names can be debatable. However for the Chinese case, the content language itself can change (in the chosen variant sense). The zh language code is mostly for technical purposes mentioned above (like preventing the title name in URL changing depending on the variant), and is rarely used as a display language.

Mon, Aug 11, 4:26 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Bewfip updated the task description for T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis.
Mon, Aug 11, 4:13 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Winston_Sung added a comment to T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis.

Please check the following URLs instead:

Mon, Aug 11, 4:10 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Winston_Sung added a comment to T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis.

The MessagesZh namespace names are intended to be in English to use them as the canonical namespace name in URL, prevent lean to one of the language variants and prevent technical issues related to the zh language converter.

Mon, Aug 11, 4:07 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
pfischer moved T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis from Incoming to Blocked / Waiting on the Discovery-Search (2025.07.25 - 2025.08.15) board.
Mon, Aug 11, 3:56 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
pfischer updated subscribers of T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis.

The translation file for that wiki are in English.

Mon, Aug 11, 3:55 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
pfischer edited projects for T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis, added: Discovery-Search (2025.07.25 - 2025.08.15); removed Discovery-Search.
Mon, Aug 11, 3:27 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
EBernhardson removed a project from T401362: Unexpected results when modifying a suggested search result (typing a partial search string, keyboard-scrolling down to a suggested result, and modifying it before searching): Discovery-Search.
Mon, Aug 11, 3:18 PM · MediaWiki-Search
ReleaseTaggerBot added a project to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized: MW-1.45-notes (1.45.0-wmf.14; 2025-08-12).
Mon, Aug 11, 9:00 AM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
Maintenance_bot removed a project from T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized: Patch-For-Review.
Mon, Aug 11, 8:30 AM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
dcausse moved T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized from In Progress to To be Deployed on the Discovery-Search (2025.07.25 - 2025.08.15) board.
Mon, Aug 11, 8:22 AM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
gerritbot added a comment to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized.

Change #1176523 merged by jenkins-bot:

[mediawiki/core@master] Add early normalization to TitleMatcher

https://gerrit.wikimedia.org/r/1176523

Mon, Aug 11, 7:54 AM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
Maintenance_bot removed a project from T320337: [M] Special:Search results should have a way to suppress thumbnails: Patch-For-Review.
Mon, Aug 11, 6:30 AM · Discovery-Search (Current work), User-notice-archive, MW-1.40-notes (1.40.0-wmf.6; 2022-10-17), SDAW-Search-Improvements (Milestone 1: CSS changes to all wikis), Structured-Data-Backlog (Current Work), MediaWiki-Search, CirrusSearch
gerritbot added a comment to T320337: [M] Special:Search results should have a way to suppress thumbnails.

Change #1149401 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/core@master] Fix incomplete search-thumbnail-extra-namespaces-message docs

Reason:

Fixed via https://translatewiki.net/wiki/Special:Diff/13333590

https://gerrit.wikimedia.org/r/1149401

Mon, Aug 11, 6:16 AM · Discovery-Search (Current work), User-notice-archive, MW-1.40-notes (1.40.0-wmf.6; 2022-10-17), SDAW-Search-Improvements (Milestone 1: CSS changes to all wikis), Structured-Data-Backlog (Current Work), MediaWiki-Search, CirrusSearch

Sun, Aug 10

gerritbot added a project to T320337: [M] Special:Search results should have a way to suppress thumbnails: Patch-For-Review.
Sun, Aug 10, 6:28 PM · Discovery-Search (Current work), User-notice-archive, MW-1.40-notes (1.40.0-wmf.6; 2022-10-17), SDAW-Search-Improvements (Milestone 1: CSS changes to all wikis), Structured-Data-Backlog (Current Work), MediaWiki-Search, CirrusSearch
gerritbot added a comment to T320337: [M] Special:Search results should have a way to suppress thumbnails.

Change #1149401 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/core@master] Fix incomplete search-thumbnail-extra-namespaces-message docs

https://gerrit.wikimedia.org/r/1149401

Sun, Aug 10, 6:28 PM · Discovery-Search (Current work), User-notice-archive, MW-1.40-notes (1.40.0-wmf.6; 2022-10-17), SDAW-Search-Improvements (Milestone 1: CSS changes to all wikis), Structured-Data-Backlog (Current Work), MediaWiki-Search, CirrusSearch

Fri, Aug 8

Bewfip moved T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis from Backlog to Extensions/Skins on the Chinese-Sites board.
Fri, Aug 8, 9:57 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Bewfip added a project to T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis: Chinese-Sites.
Fri, Aug 8, 9:57 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
Bewfip created T401499: Namespace names in the dropdown menu of Extension:AdvancedSearch are untranslated for Chinese wikis.
Fri, Aug 8, 9:49 PM · Discovery-Search (2025.08.15 - 2025.09.05), Chinese-Sites, I18n, MediaWiki-Search, Advanced-Search
-sche added a comment to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized.

Thanks for looking into ways to address this!

Fri, Aug 8, 1:22 AM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)

Thu, Aug 7

gerritbot added a project to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized: Patch-For-Review.
Thu, Aug 7, 5:59 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
gerritbot added a comment to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized.

Change #1176523 had a related patch set uploaded (by Tjones; author: Tjones):

[mediawiki/core@master] Add early normalization to TitleMatcher

https://gerrit.wikimedia.org/r/1176523

Thu, Aug 7, 5:58 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
A_smart_kitten merged task T401362: Unexpected results when modifying a suggested search result (typing a partial search string, keyboard-scrolling down to a suggested result, and modifying it before searching) into T333608: [Timebox] Vector 2022 search navigates to the wrong result if you type after selecting an item using arrow keys.
Thu, Aug 7, 3:58 PM · MediaWiki-Search
A_smart_kitten added a comment to T401362: Unexpected results when modifying a suggested search result (typing a partial search string, keyboard-scrolling down to a suggested result, and modifying it before searching).

Thanks for testing, and no worries! Better to file a bug report about something that's already been reported, than to not file one about something that isn't yet known about ^^

Thu, Aug 7, 3:55 PM · MediaWiki-Search
-sche added a comment to T401362: Unexpected results when modifying a suggested search result (typing a partial search string, keyboard-scrolling down to a suggested result, and modifying it before searching).

@A_smart_kitten: Aha, no, the bug does not occur if I switch to Vector Legacy or Monobook. This explains why I only started encountering it within the last few months, because that's around when I switched to Vector 2022. Apologies for the redundant bug report, then.

Thu, Aug 7, 3:18 PM · MediaWiki-Search
A_smart_kitten added a comment to T401362: Unexpected results when modifying a suggested search result (typing a partial search string, keyboard-scrolling down to a suggested result, and modifying it before searching).

@-sche thanks for the report! If you temporarily switch the selected skin in your preferences, does this behaviour occur on skins other than Vector (2022)? If not, I wonder if this might be the same issue as T333608: [Timebox] Vector 2022 search navigates to the wrong result if you type after selecting an item using arrow keys.

Thu, Aug 7, 10:27 AM · MediaWiki-Search
A_smart_kitten added a project to T400291: Searching with long s (ſ) character causes everything else to be interpreted as if capitalized: MediaWiki-Search.
Thu, Aug 7, 10:21 AM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Search, Discovery-Search (2025.07.25 - 2025.08.15)
Aklapper edited projects for T401362: Unexpected results when modifying a suggested search result (typing a partial search string, keyboard-scrolling down to a suggested result, and modifying it before searching), added: MediaWiki-Search; removed Discovery-Search.

CirrusSearch is the piece of software to tag for search backend issues on Wikimedia wikis; MediaWiki-Search for frontend :)

Thu, Aug 7, 9:40 AM · MediaWiki-Search

Wed, Aug 6

bwang removed a parent task for T278283: Clicking back in the search box should reactivate the suggestions: T282473: [GOAL] Use the Codex search widget inside the mobile and desktop site.
Wed, Aug 6, 5:38 PM · MediaWiki-Search

Mon, Aug 4

Escargot_rouge updated the task description for T401090: Anchor links issue on mobile: focus is set on search instead of the anchor.
Mon, Aug 4, 7:20 AM · MW-1.45-notes (1.45.0-wmf.12; 2025-07-29), MediaWiki-Core-Skin-Architecture, Mobile
Escargot_rouge updated the task description for T401090: Anchor links issue on mobile: focus is set on search instead of the anchor.
Mon, Aug 4, 7:14 AM · MW-1.45-notes (1.45.0-wmf.12; 2025-07-29), MediaWiki-Core-Skin-Architecture, Mobile