Cover | Table of Contents
to be or not to be
"to be or not to be"
to be or not to be
"to be or not to be"
AND (searching for all keywords) or Boolean OR (searching for any keywords). Of course, even if a search engine defaults to searching for all keywords, you can usually give it a special command to instruct it to search for any keyword. Lacking specific instructions, the engine falls back on its default setting.AND, which means that if you enter query words without modifiers, Google will search for all your query words. For example, if you search for:* (asterisk) but sometimes ? (question mark)—to part of your query, requesting the search engine to return variants of that query using the wildcard as a placeholder for the rest of the word. For example, moon* would find moons, moonlight, moonshot, etc.canine dietary will yield results for dog diet, diets, and other variations on the theme.*) into a phrase, and the wildcard will act as a substitute for one full word. Searching for three
*
mice, therefore, finds three blind mice, three blue mice, three green mice, etc.* is a stand-in for one word; ** signifies two words, and so on. The full-word wildcard comes in handy in the following situations:intitle:"methinks
the
*
doth
protest
too
much" and intitle: "the
*
of
Seville" (intitle: is described next in “Special Syntax”).AND, OR, and phrase searches, Google offers some rather extensive special syntax for narrowing your searches.intitle:
intitle: restricts your search to the titles of web pages. The variation allintitle: finds pages in which all the specified words appear in the title of the web page. Using allintitle: is basically the same as using intitle: before each keyword:intitle:"george bush" allintitle:"money supply" economics
allintitle: variation because it doesn’t mix well with some of the other syntax elements.intext:
intext: searches only body text (i.e., it ignores link text, URLs, and titles). While its uses are limited, it’s perfect for finding query words that might be too common in URLs or link titles:intext:"yahoo.com" intext:html
site:ucla.edu -inurl:ucla
site:com site:edu
perl
site:edu
site:com. This search will get you exactly zero results. Why? Because a result page cannot come from a .edu domain and a .com domain at the same time. If you want results from .edu and .com domains only, rephrase your search like this:perl (site:edu | site:com)
|), you specify that you want results to come either from the .edu or the .com domain.http://www.google.com/advanced_search), shown in Figure 1-1, provides more options, such as date search and filtering, with “fill in the blank” searching options for those who don’t take naturally to memorizing special syntax.
AND by default,
it’s sometimes hard to logically build out the nuances of a particular query. Using the text boxes at the top of the Advanced Search page, you can specify words that must appear—exact phrases or lists of words, at least one of which must appear—and words to be excluded.filetype: special syntax described earlier in “Special Syntax.”daterange: special syntax, which can give you results as narrow as one day, but Google stands behind the results generated using the Date option on the Advanced Search, while not officially sanctioning the use of the
define (e.g., define happy), and the first item on your results page will in all probability be a definition pulled from one of any number of web dictionaries. Use define: (note the colon—e.g., define:osteichthyes) to pull up a whole page full of definitions [Hack #6].http://www.google.com/language_tools.flowers.
flowers is shown in Figure 1-4.
three
blind
mice. The URL of the page of results will vary depending on the preferences you’ve set, but it will look something like this:http://www.google.com/search?num=100&hl=en&q=%22three+blind+mice%22
q=%22three+blind+mice%22, %22 being a URL-encoded " (double quote)—is pretty obvious, but let’s break down what those extra bits mean.num=100 refers to the number of search results per page—100 in this case. Google accepts any number from 1 to 100. Altering the value of num is a nice shortcut to altering the preferred size of your result set without having to meander over to the Advanced Search page and rerun your search.num= in your URL? Simply append it by clicking at the end of the URL in your browser’s address bar and typing it in. To set the number of results per page to 20, for instance, add &num=20.= (equals)—to something within the accepted range for the modifier in question. If you’re adding a modifier, you must use an & (ampersand) too. Look at how the modifiers are joined together on URLs for other search results to see how it’s done.hl=en refers to the language interface (the language in which you use Google, reflected in the home page, messages, and buttons). Here, it’s in English. Google’s Language Tools [“Language Tools” earlier in this chapter] page provides a list of language choices. Run your mouse over each language choice and notice the change reflected in the URL. The URL for Pig Latin looks like this:http://directory.google.com. Instead of indexing the entirety of billions of pages, the directory describes sites instead, indexing about five million URLs. This makes it a much better search for general topics.http://dmoz.org/. Unlike the results at the standard Google Web Search, the collection of URLs at the Open Directory Project is gathered and maintained by a group of human volunteers rather than automatic algorithms, but Google does add some of its own Googlish magic to it.
define:zeitgeist), there’s consensus that it refers to “the spirit of the times.” And Google Zeitgeist (http://www.google.com/press/zeitgeist.html) is just that: a mirror that the Web (according to Google) holds up to us, providing a snapshot of the week, month, or year that was.
http://www.touchgraph.com/TGGoogleBrowser.html). This Java applet allows you to start with pages that are similar to one URL, and then expand outward to pages that are similar to the first set of pages, on and on, until you have a giant map of nodes (a.k.a. URLs) on your screen.http://www.touchgraph.com/). related: syntax. You aren’t doing a keyword search, and you’re not using the link: syntax. You’re searching by Google’s measure of similarity.
hydrecefallus, Google will ask if you meant hydrocephalus, as shown in Figure 1-13.
hydrecefallus finding (hopefully) no results sparks a Google-initiated search for hydrocephalus.kweghgjdlsggaa, you’ll get no results and be offered no suggestions.phonebook
rphonebook
bphonebook
phonebook: lookups lists only five results for both residential and business numbers. The more specific rphonebook: and bphonebook: searches provide up to 30 results per page. For a better chance of finding what you’re looking for, use the appropriate targeted lookup.phonebook:smith ca
define search syntax mentioned in the “Quick Links” section earlier in this chapter. Simply prepend the definition you’re after with the special syntax keyword define, like so:
define google juice define julienne define 42
define: (note the addition of a colon) in the first place, and you’ll net a full page of definitions drawn from all manner of places. For instance, define:TLA finds turns up oodles of definitions (all about the same, mind you), as shown in Figure 1-15.
http://directory.google.com) to see what’s available, but sometimes a topic-specific directory is what you need. intitle: syntax [“Special Syntax” earlier in this chapter]. The second is a judicious use of particular keywords.* characters). The resultant query looks something like this:intitle:"directory * * trees"
intitle: and keywords, like so:botany intitle:"directory of"
edu site specification brings you to:botany intitle:"directory of" site:edu
http://blog.outer-court.com/search-grid), by German programmer Philipp Lenssen, lets you explore a wide range of Google search results by automatically searching for multiple combinations of keywords you specify. This gives you a quick overview of paths you can follow for a given set of keywords. You might, for example, put catsup, mustard, and pickles on the x-axis and relish, onions, and tomatoes on the y-axis, as shown in Figure 1-16.
http://www.findforward.com/?t=grid), which gives you screenshots of some Google search results. FindFoward requires less typing: enter two to five words for which you want to check possible permutations. You get a large grid of search results, with screenshots available for some of the pages, as shown in Figure 1-18.<!-- Search Google --> <form method="get" action="http://www.google.com/search"> <input type="text" name="q" size=31 maxlength=255 value=""> <input type="submit" name="sa" value="Search Google"> </form> <!-- Search Google -->
<form> tags, it’s rather tidy and useful to keep them together after all the visible form fields.<input type="hidden" name="as_filetype" value="PPT">
"australian shepherd"—you’ll find that the top few sites are the same across both Yahoo! and Google, but the two search engines quickly diverge into different results. At the time of this writing, both sites estimate exactly 1,030,000 total results for this particular query, but estimated result counts might be a way to spot differences between the sites.
personable, you’ll see the same results I do. However, Google is working on technology that will tailor its search results to you as an individual. One step in that direction is the
Search History (a.k.a. Personalized Search) feature, in beta testing at the time of this writing.
https://www.google.com/accounts/NewAccount and sign up. Google offers the option to disable Personalized Search when you create an account, as shown in Figure 1-28, but if you’re there to try out Search History, you need to leave this unchecked.
http://www.googlism.com) may provide you with something useful.famous fictional detective. You can also use the tabs to see what other objects people are searching for and what searches are the most popular.
Perl and “What” returns, along with a laundry list of others:Perl is y2k compliant Perl is not my favourite programming language Perl is the coder's language of choice Perl is the language of love
Steve Jobs and “Who”:steve jobs is my new idol steve jobs is at it again steve jobs is trying to kill me
http://www.fismo.com/KeepUp/fog0000000025.html.http://www.diddly.com/random) sports a clever little snippet of JavaScript code that simply generates one of these filenames at random and queries Google Images for it.