Fandom

Wikia Developers Wiki

SearchSuggest

869pages on
this wiki
Add New Page
Talk7 Share

Wikia's fulltext search does not pay attention to page titles. So while it is easy to find pages where your search term was mentioned multiple times, it is sometimes impossible to find pages that are about your search term. The SearchSuggest script adds the list of best-matching pagenames to the results page.

Example

To understand the problem, go to the 24 wiki and search for Beau. There are, at the time of writing this, four pages with the word "Beau" in the page title:
Beau Bowden, Beau Dremann, Beau Smith, Beaumont

The fulltext search only finds the first of these.

And here's a screenshot of the results page with the best-matching pagenames added in:

SearchSuggest

Installation

See also: Help:JavaScript and CSS Cheatsheet

To install SearchSuggest, simply add the appropriate row to your importArticles() call in your global.js.

importArticles({
    type: 'script',
    articles: [
        'u:dev:SearchSuggest/code.js'
    ]
});

Localization

Post translations on the talk page, please!

See also

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.