Page MenuHomePhabricator

OpenSearch: Add support for getting titles of in-title matches (instead of just prefix)
Open, LowPublicFeature

Description

Author: mr.primus

Description:
Please provide a $wg... configuration setting or a user preference to give
the AJAX autosuggest feature the ability to search not only in the beginning, but anywhere in the article name.

reason 1:

example article: Pixar's Disney Toy Story
search for: Disney
current result: no result
You currently only would get results with typing: Pi...

reason 2: This would also important when searching beyond namespaces...

example: The category "Disney" exists but no article "Disney"
search for: Disney
current result: nothing
You only would get results with typing: Category:D...

reason 3: The autosuggest feature currently does not replace the[http://www.mediawiki.org/wiki/Extension:Search_Suggest Extension:Search Suggest] for this functionality like stated on the page of this extension. But this extension was unfortunatly only able to search in articles without namespace preposition. Configuration setting here was: $location = 1; //set to 1 to search anywhere in the article name, set to 0 to search only at the begining

reason 4: requested by another user at [http://www.mediawiki.org/wiki/Manual_talk:$wgEnableMWSuggest#Extend_the_search]

It can not be a good solution to set redirects for alternative or incomplete terms, especially not when #16145 (mwsuggest.js should not return redirects) get into the core.

Thank you.


Version: 1.13.x
Severity: enhancement

Details

Reference
bz20237

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:49 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz20237.
bzimport added a subscriber: Unknown Object (MLST).

Not related to mwsuggest.js, this requests a major feature in the search suggestions infrastructure in general (called OpenSearch).

Note that is unlikely coming soon due to the fact how database indexes work. If possible, we'd have to use an index outside of MySQL. Ie. something Lucene-related.

rob.j.nickerson wrote:

Any updates on this bug? I'm not certain, but think the component should be changed to "OpenSearchXml".

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.