Difference between revisions of "Help:Searching"

From MPDLMediaWiki
Jump to navigation Jump to search
Line 5: Line 5:
</div><br clear="left"/>
</div><br clear="left"/>


===Tips for effective searches===
==Tips for effective searches==


====Go is case sensitive====
===Go is case sensitive===
The function of the go button is to display a page directly, instead of first having to select it from the search result page. In other words, it allows you to quickly navigate from page to page without following links.
The function of the go button is to display a page directly, instead of first having to select it from the search result page. In other words, it allows you to quickly navigate from page to page without following links.


====Avoid short and common words====
===Avoid short and common words===
If your search terms include a common [http://en.wikipedia.org/wiki/Stop_word stop word] (such as ''the'', ''your'', ''more'', ''right'', ''while'', ''when'', ''who'', ''which'', ''such'', ''every'', ''about''), you may see many irrelevant results. Previously, Wikipedia's search function [http://en.wikipedia.org/wiki/Wikipedia:Common_words%2C_searching_for_which_is_not_possible could not search for such words]]. Since February 2006, Wikipedia's [http://en.wikipedia.org/wiki/Lucene Lucene] index does not filter out stop words, so any word can be processed in search queries.
If your search terms include a common [http://en.wikipedia.org/wiki/Stop_word stop word] (such as ''the'', ''your'', ''more'', ''right'', ''while'', ''when'', ''who'', ''which'', ''such'', ''every'', ''about''), you may see many irrelevant results. Previously, Wikipedia's search function [http://en.wikipedia.org/wiki/Wikipedia:Common_words%2C_searching_for_which_is_not_possible could not search for such words]]. Since February 2006, Wikipedia's [http://en.wikipedia.org/wiki/Lucene Lucene] index does not filter out stop words, so any word can be processed in search queries.


====Wildcards====
===Wildcards===
Please exercise self restraint when using [http://en.wikipedia.org/wiki/Wildcard_character wildcard character]s, as they take a toll on the server. See [http://dev.mysql.com/doc/mysql/en/fulltext-boolean.html Boolean fulltext search] for details on their use.
Please exercise self restraint when using [http://en.wikipedia.org/wiki/Wildcard_character wildcard character]s, as they take a toll on the server. See [http://dev.mysql.com/doc/mysql/en/fulltext-boolean.html Boolean fulltext search] for details on their use.


====Words with special characters====
===Words with special characters===
In a '''search''' for a word with a [http://en.wikipedia.org/wiki/Diaeresis diaeresis], such as Sint Odili&euml;nberg, it depends whether this ë is stored as one character or as "&amp;euml;". In the first case one can simply search for Odilienberg (or Odili&euml;nberg); in the second case it can only be found by searching for Odili, euml and/or nberg. This is actually a [http://en.wikipedia.org/wiki/Bug_%28computing%29 bug in the mediawiki Software] that should be fixed -- the entities should be folded into their raw character equivalents so all searches on them are equivalent. See also [http://en.wikipedia.org/wiki/Wikipedia:Special_characters Special characters].
In a '''search''' for a word with a [http://en.wikipedia.org/wiki/Diaeresis diaeresis], such as Sint Odili&euml;nberg, it depends whether this ë is stored as one character or as "&amp;euml;". In the first case one can simply search for Odilienberg (or Odili&euml;nberg); in the second case it can only be found by searching for Odili, euml and/or nberg. This is actually a [http://en.wikipedia.org/wiki/Bug_%28computing%29 bug in the mediawiki Software] that should be fixed -- the entities should be folded into their raw character equivalents so all searches on them are equivalent. See also [http://en.wikipedia.org/wiki/Wikipedia:Special_characters Special characters].


====Words in single quotes====
===Words in single quotes===
If a word appears in an article with single quotes, you can only find it if you search for the word with quotes. Since this is rarely desirable, it is better to use double quotes in articles for which this problem does not arise. See the [http://en.wikipedia.org/wiki/Wikipedia:Manual_of_style manual of style] for more info.
If a word appears in an article with single quotes, you can only find it if you search for the word with quotes. Since this is rarely desirable, it is better to use double quotes in articles for which this problem does not arise. See the [http://en.wikipedia.org/wiki/Wikipedia:Manual_of_style manual of style] for more info.


An apostrophe is identical to a single quote, therefore the name Mu'ammar can be found only by searching for exactly that (and not otherwise). A word with ''<nowiki>'</nowiki>s'' is an exception in that it can be found also by searching for the word without the apostrophe and the s.
An apostrophe is identical to a single quote, therefore the name Mu'ammar can be found only by searching for exactly that (and not otherwise). A word with ''<nowiki>'</nowiki>s'' is an exception in that it can be found also by searching for the word without the apostrophe and the s.


====Phrases in double quotes -- exact match only====
===Phrases in double quotes -- exact match only===
A phrase can easily be found by enclosing it in double quotes. For example, ''"holly dolly"'' returns six matches; ''holly dolly'' (two standalone words) returns 197.
A phrase can easily be found by enclosing it in double quotes. For example, ''"holly dolly"'' returns six matches; ''holly dolly'' (two standalone words) returns 197.

Revision as of 12:48, 23 November 2007

Enter your keywords in the search box.

  • Go - (or Enter on keyboard) takes you to the article.
  • Search - returns a list of articles and additional search options.


Tips for effective searches

Go is case sensitive

The function of the go button is to display a page directly, instead of first having to select it from the search result page. In other words, it allows you to quickly navigate from page to page without following links.

Avoid short and common words

If your search terms include a common stop word (such as the, your, more, right, while, when, who, which, such, every, about), you may see many irrelevant results. Previously, Wikipedia's search function could not search for such words]. Since February 2006, Wikipedia's Lucene index does not filter out stop words, so any word can be processed in search queries.

Wildcards

Please exercise self restraint when using wildcard characters, as they take a toll on the server. See Boolean fulltext search for details on their use.

Words with special characters

In a search for a word with a diaeresis, such as Sint Odiliënberg, it depends whether this ë is stored as one character or as "&euml;". In the first case one can simply search for Odilienberg (or Odiliënberg); in the second case it can only be found by searching for Odili, euml and/or nberg. This is actually a bug in the mediawiki Software that should be fixed -- the entities should be folded into their raw character equivalents so all searches on them are equivalent. See also Special characters.

Words in single quotes

If a word appears in an article with single quotes, you can only find it if you search for the word with quotes. Since this is rarely desirable, it is better to use double quotes in articles for which this problem does not arise. See the manual of style for more info.

An apostrophe is identical to a single quote, therefore the name Mu'ammar can be found only by searching for exactly that (and not otherwise). A word with 's is an exception in that it can be found also by searching for the word without the apostrophe and the s.

Phrases in double quotes -- exact match only

A phrase can easily be found by enclosing it in double quotes. For example, "holly dolly" returns six matches; holly dolly (two standalone words) returns 197.