The fuzzy sub phrases requires being turned on per wiki, this is enabled for wikisource and some technical wikis, but not on wikipedia due to the index having to be fully in memory (as opposed to most search indices which are disk based). Basically we have turned it on for specific sites which had a reasonably low number of pages and where the usefulness appeared particularly high.

While not the same as autocomplete, one option to get fuzzy matching is to use full text search with "intitle:DeusEx~". The final ~ tells the search engine to apply fuzzy matching, and the intitle: limits the search to only titles. Also note that while fuzzy can be useful for dealing with typo's, it can also do rather undesirable things. For example a fuzzy match for "hat~" matches "HA", "hae", "hart", "hal","han", etc."ham", "hao", etc.

Erik B.

Erik B.

On Tue, Apr 23, 2019, 8:31 AM Brad Jorsch (Anomie) <bjorsch@wikimedia.org> wrote:
I see they're not listed as options in the auto-generated help at https://en.wikipedia.org/w/api.php?modules=opensearch. You'd have to ask the people working on CirrusSearch about the history there.

On Sat, Apr 20, 2019 at 9:41 PM Invertex <reversenorms@gmail.com> wrote:
Saw these two profile options in the wiki and was hoping to use them, but when I try it just says it's unrecognized.

Example:   https://en.wikipedia.org/w/api.php?format=json&action=opensearch&profile=fuzzy-subphrases&redirects=resolve&limit=1&search=DeusEx 

Were these two profile options removed at some point but never updated on the wiki?

Thanks!  
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api