Page MenuHomePhabricator

Available image not offered as type-ahead search result under VisualEditor's "Insert->Media" (search only returns word matches)
Open, LowPublic

Description

Hi all!
Whilst image is present in https://en.wikivoyage.org/wiki/Special:ListFiles (for examp.: ValenciaBanner2.jpg )
it could not be found in media search results by partial name:

Screenshot_20180226_142054.png (1×1 px, 1 MB)

Screenshot_20180226_142040.png (1×1 px, 531 KB)

Screenshot_20180226_142129.png (1×1 px, 534 KB)

Screenshot_20180226_142134.png (1×1 px, 586 KB)

Some debug info on third-party install can be found here: https://phabricator.wikimedia.org/T186997

Event Timeline

Aklapper renamed this task from Incorrect media search results (Insert->media) to Available image not offered as type-ahead search result under VisualEditor's "Insert->Media".Feb 26 2018, 12:24 PM
Aklapper updated the task description. (Show Details)
Aklapper added a project: CirrusSearch.
Deskana moved this task from To Triage to External and Administrivia on the VisualEditor board.
Deskana subscribed.

It looks like VisualEditor is using the full text search api. If you want partial title matches it would need to use the prefix search generator. Alternatively the full text api can be convinced to do prefix searches (although in an exceptionally more expensive way) by appending a * to any partial token. If prefix search is too limiting, as you want to search non-title matches, a tradeoff might be to generate a full text search query in the form of: valenciabanner OR intitle:valenciabanner* which will limit the * expansion to only titles/redirects.

EBjune lowered the priority of this task from Medium to Low.Jun 7 2018, 5:23 PM
EBjune subscribed.

waiting for a response from VE team, until then there's nothing Search Platform can do.

matmarex renamed this task from Available image not offered as type-ahead search result under VisualEditor's "Insert->Media" to Available image not offered as type-ahead search result under VisualEditor's "Insert->Media" (search only returns word matches).May 7 2019, 8:35 PM
MPhamWMF subscribed.

Closing out low/est priority tasks over 6 months old with no activity within last 6 months in order to clean out the backlog of tickets we will not be addressing in the near term. Please feel free to reopen if you think a ticket is important, but bare in mind that given current priorities and resourcing, it is unlikely for the Search team to pick up these tasks for the indefinite future. We hope that the requested changes have either been addressed by or made irrelevant by work the team has done or is doing -- e.g. upgrading Elasticsearch to a newer version will solve various ES-related problems -- or will be subsumed by future work in a more generalized way.

RhinosF1 removed a project: Discovery-Search.
RhinosF1 subscribed.

Re-opening tasks and removing from team workboard per IRC feedback given yesterday and discussion with MPham.

I just installed MediaWiki for the first time and bumped into this issue while user testing. It would be wonderful to be able to rely on the native search!

I can confirm @EBernhardson's observation that the Insert → Media search runs from the api.php full-text search API. This only matches full 'words', lacks typeahead, and since it doesn't consider . a delimiter, the final 'word' must include the suffix (e.g. lastWord.suffix). This behavior significantly encourages users to name media files with spaces, not camelCase, hyphenation, etc.

The main/page search runs from the rest.php autocomplete page title API and performs typeahead for page titles starting at any word in their titles; files are only shown with the file: prefix, which is then considered the beginning of the string, so the next 'word' must be the first of the file.

The REST search pages API seems like the most fitting one, since search terms can be listed in any order, but it doesn't seem to offer typeahead.

I would be happy to assist in improving native media search, but I'm afraid I'm mostly limited to user testing.

not sure if it helps but mainpage is saying

Effective June 1, 2021: Phabricator is no longer actively maintained.

not sure if it helps but mainpage is saying

Effective June 1, 2021: Phabricator is no longer actively maintained.

I'm not sure what that's got to to do with this task. This is a bug in mediawiki and has nothing to do with the underlying software used to report the bug.

you right, sorry, the passage of time has slightly distorted my memory of this task.

not sure if it helps but mainpage is saying

Effective June 1, 2021: Phabricator is no longer actively maintained.

I'm not sure what that's got to to do with this task. This is a bug in mediawiki and has nothing to do with the underlying software used to report the bug.