Fandom Developers Wiki
m ([MobileEditor] Undo revision 121570 by FANSG (talk) Please reply to the talkpage if you're encountering issues.)
(Templatizing.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
<noinclude>{{LangSelect}}</noinclude><includeonly>
 
{{Languages}}
 
{{Languages}}
 
{{Infobox JavaScript
 
{{Infobox JavaScript
 
| Image file = SearchSuggest.png
 
| Image file = SearchSuggest.png
| Description = Suggests pages while [[Special:Search|searching]]
+
| Description = {{{description|Suggests pages while [[Special:Search|searching]]}}}
 
| Scope = ps
 
| Scope = ps
 
| Author =
 
| Author =
 
* [[User:Pecoes|Pecoes]]
 
* [[User:Pecoes|Pecoes]]
 
* [[User:KockaAdmiralac|KockaAdmiralac]]
 
* [[User:KockaAdmiralac|KockaAdmiralac]]
  +
| Other attribution =
  +
* [[User:Joritochip|Joritochip]]
 
| Code = [[MediaWiki:SearchSuggest/code.js|code.js]]
 
| Code = [[MediaWiki:SearchSuggest/code.js|code.js]]
  +
| Updated = {{Updated|MediaWiki:SearchSuggest/code.js}}
 
| Type = site
 
| Type = site
  +
| Examples = [[Special:Search]]
 
}}
 
}}
Fandom'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 page names to the results page.
+
{{{intro|Fandom'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 page names to the results page.}}}
   
  +
== {{I18n|getMsg|Documentation|example}} ==
== Example ==
 
To understand the problem, go to the 24 wiki and search for [{{fullurl:w:c:24:Special:Search}}?query=beau Beau.] There are, at the time of writing this, four pages with the word "Beau" in the page title:
+
{{{example-text|To understand the problem, go to the 24 Wiki and search for [{{fullurl:w:c:24:Special:Search}}?query=beau Beau]. There are, at the time of writing this, four pages with the word "Beau" in the page title:}}}
* [[w:c:24:Beau Bowden|Beau Bowden]],
+
* [[w:c:24:Beau Bowden|Beau Bowden]]
* [[w:c:24:Beau Dremann|Beau Dremann]],
+
* [[w:c:24:Beau Dremann|Beau Dremann]]
* [[w:c:24:Beau Smith|Beau Smith]] and
+
* [[w:c:24:Beau Smith|Beau Smith]]
* [[w:c:24:Beaumont|Beaumont]].
+
* [[w:c:24:Beaumont|Beaumont]]
The fulltext search only finds the first three of these.
+
{{{example-search|The fulltext search only finds the first three of these.}}}
   
  +
== {{I18n|getMsg|Documentation|installation}} ==
== Installation ==
 
 
{{Script Install
 
{{Script Install
 
| codepage = SearchSuggest/code.js
 
| codepage = SearchSuggest/code.js
 
}}
 
}}
  +
</includeonly>

Latest revision as of 20:50, 7 March 2023

Fandom'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 page names 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:

The fulltext search only finds the first three of these.

Installation

Text above can be found here (edit)