Andover Answers:Searching: Difference between revisions

From Andover Answers
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
===Limiting results===
===Limiting results===


Wikipedia's default search mode will turn up results with '''''any''''' of the words in your query. For instance, <tt>[http://www.wikipedia.org/w/wiki.phtml?search=search+engine search engine]</tt> turns up many results containing only "search" but not "engine" or only "engine" but not "search" in addition to the ones you probably wanted, which contain both words.
The default search mode will turn up results with '''''any''''' of the words in your query. For instance, <tt>[http://www.mhl.org/answers/index.php?search=Pomps+Pond Pomps Pond]</tt> turns up many results containing only "Pomps" but not "Pond" or only "Pond" but not "Pomps" in addition to the ones you probably wanted, which contain both words.


To limit to results that include '''''all''''' words, put a "+" at the beginning of each word: <tt>[http://www.wikipedia.org/w/wiki.phtml?search=%2Bsearch+%2Bengine +search +engine]</tt> returns only pages containing both words, like Google's default mode.
To limit to results that include '''''all''''' words, put a "+" at the beginning of each word: <tt>[http://www.mhl.org/answers/index.php?search=%2BPomps+%2BPond +Pomps +Pond]</tt> returns only pages containing both words, like Google's default mode.


You can also do a '''phrase''' search by enclosing words in quotes: <tt>[http://www.wikipedia.org/w/wiki.phtml?search=%22search+engine%22 "search engine"]</tt> turns up a smaller set of results, which not only have both words but have them in order.
You can also do a '''phrase''' search by enclosing words in quotes: <tt>[http://www.mhl.org/answers/index.php?search=%22Pomps+Pond%22 "Pomps Pond"]</tt> turns up a smaller set of results, which not only have both words but have them in order.


To '''exclude''' results that include some word, put a "-" at the beginning: <tt>[http://www.wikipedia.org/w/wiki.phtml?search=search+-engine search -engine]</tt>
To '''exclude''' results that include some word, put a "-" at the beginning: <tt>[http://www.mhl.org/answers/index.php?search=Pomps+-Pond Pomps -Pond]</tt>
 
 
===Wildcards===
Add an asterisk (*) to the end of a search term to return not only entries that contain that search term but also longer versions of it: e.g., <tt>[http://www.mhl.org/answers/index.php?search=hous* hous*]</tt> finds entries containing '''''house''''', '''''houses''''', and/or '''''housing'''''.  ''(NB: Please use sparingly.)''




===Avoid short and common words===
===Avoid short and common words===
This is the most likely cause of an unexpected failed search.
This is the most likely cause of an unexpected failed search.
If your search terms include a common "stop word" (such as "the", "one", "your", "more", "right", "while", "when", "who", "which",
If your search terms include a common "stop word" (such as "the", "one", "your", "more", "right", "while", "when", "who", "which", "such", "every", "about", "onto"), then your search will fail without any results. Short numbers, and words that appear in half of all pages, will also not be found. In this case, drop those words and rerun the search.
"such", "every", "about", "onto"), then your search will fail without any
results. Short numbers, and words that appear in half of all pages, will also not be found.
In this case, drop those words and rerun the search.
 
===Search is case-insensitive===
The searches for "fortran", "Fortran" and "FORTRAN" all return the same results.
 
<!-- ===Boolean search possible===
You can use the words "and", "or" and "not" and parentheses in order to
formulate more complicated requests.
If none of those words is specified, "and" is used by default.
For instance, "indian not american" will return all pages that contain the
word "indian" but don't contain the word "american".
The search "(Adolph or Adolf) and Hitler" will return all pages which
contain "Hitler" and either "Adolf" or "Adolph".
-->
 
===Words with special characters===
In a search for a word with a [[w: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 bug that should be fixed -- the entities should be folded into their raw character equivalents so all searches on them are equivalent. See also [[Help:Special characters]].
 
 
=== Phrase ===
There is no method for searching for a phrase.  Contrary to what you might expect, enclosing phrases in double quotation marks such as "can of tuna" will retrieve all pages containing "of" "tuna" and "can".
 
==Searching limitations and Gotchas==
 
===No regular expressions or wildcards===
You cannot use [[w:regular expression|regular expression]]s or wildcards such as ? or *. If you don't know what that is, don't worry about it. To search for pages with the words "boat" or "boats" search like this: "boat or boats".
 
===Words in single quotes===
If a word appears in a page 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 pages, for which this problem does not arise.
 
An apostrophe is identical to a single quote, therefore Mu'ammar can be found searching for exactly that (and not otherwise). A word with apostrophe s is an exception in that it can be found also searching for the word without the apostrophe and the s.
 
===Delay in updating the search index===
For reasons of efficiency and priority, very recent changes to pages are not always immediately taken into account in searches.

Latest revision as of 17:20, 6 February 2006

There should be a small search box at the side of the screen, marked search, followed by Go and Search. Just type what you're looking for into the search box and press the Enter key. Or, click Go or Search. The difference between Go (same as enter) and Search is that Go first looks for an article with the given string as its title, and if one is found immediately goes to the indicated article. If Go fails to find an article, it then automatically executes Search which is a full-text search for the given words.


Limiting results

The default search mode will turn up results with any of the words in your query. For instance, Pomps Pond turns up many results containing only "Pomps" but not "Pond" or only "Pond" but not "Pomps" in addition to the ones you probably wanted, which contain both words.

To limit to results that include all words, put a "+" at the beginning of each word: +Pomps +Pond returns only pages containing both words, like Google's default mode.

You can also do a phrase search by enclosing words in quotes: "Pomps Pond" turns up a smaller set of results, which not only have both words but have them in order.

To exclude results that include some word, put a "-" at the beginning: Pomps -Pond


Wildcards

Add an asterisk (*) to the end of a search term to return not only entries that contain that search term but also longer versions of it: e.g., hous* finds entries containing house, houses, and/or housing. (NB: Please use sparingly.)


Avoid short and common words

This is the most likely cause of an unexpected failed search. If your search terms include a common "stop word" (such as "the", "one", "your", "more", "right", "while", "when", "who", "which", "such", "every", "about", "onto"), then your search will fail without any results. Short numbers, and words that appear in half of all pages, will also not be found. In this case, drop those words and rerun the search.