This is the talk page for discussing improvements to the SearchSuggest page.

        hu : {
            question: 'Nem ezt kerested? Nézd meg ezek valamelyikét: '
TK-999 (talk) 19:56, January 3, 2013 (UTC)

        nl : {
            question: 'Niet wat u zocht? Probeer: '

or google style:

        nl : {
            question: 'Geen resultaten? Zoek in plaats daarvan naar: '

--Jens Ingels (talk) 11:04, May 12, 2013 (UTC)

SearchSuggest for everyone

This sounds like a useful functionality for any wiki to acquire, but I have one problem: doesn't my global js only affect me? Wouldn't it be better to add the code to common, so all users of my wiki coul reap the benefits? —Green Zubat (irc/forum: "gz") (owl me!) 01:54, November 22, 2013 (UTC)


I just noticed that the script doesn't appear to be working anymore. I have it on a wiki and my global js. Regardless the script will probably be useless with the new navigation bar. DEmersonJMFM 02:42, November 4, 2014 (UTC)

The problem appears to be that "window.wikiaPageType" is no longer defined. -452 (talk) 09:40, November 4, 2014 (UTC)

Suggestion: Partial Searches

Since SearchSuggest only works if the search query is a partial title match, the user will often be too specific and not get any results. To overcome this, how about performing a second search for a partial match, when there are no search suggestions for the full query?

This is what I came up with, and it works pretty well:

input = $('#search-v2-input').val();
if (input.indexOf(" ") != -1) input = input.split(" ")[0];
else input = input.substr(0,5);

So when there's a space, the first word is used, and if not, just the first 5 characters. Of course, searching for "The anything" will return a lot of matches, So it might be worth not bothering to check for spaces and just search for the first X characters. I'm going to keep the space check in my script for now to see how well it works. -452 (talk) 18:23, January 12, 2015 (UTC)


Why does it suggest going to a redirect page? Maybe not doing that would be a good idea.[Template fetch failed for] 06:48, September 17, 2016 (UTC)

Doesn't Work

The latest revision, and the one before, both do not work at all.—|| Grudgeholderr ||— 05:06, July 17, 2018 (UTC)

Where aren't they working for you? They work just fine for me on Special:Search. -- Cube-shaped garbage can 13:40, August 18, 2019 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+