Download
Cover
Contents
Milestone One
Milestone Two
Milestone Three
Appendix
Diary
Biblography
Code Samples
background image
Previous
04029437
m1.7
If we take the term
whut
as a misspelling of the word
what
, when we use the term by
itself in Google, it is not identified as a spelling mistake. This is because the term
whut
is
used as an acronym and it is a common slang term for
what
.
Conversely if we put the term into context in a constructed English sentence, for
example
whut is Google?
, we are provided with the suggestion of
what is Google?
.
This shows the Google spellchecker is also examining the grammar of the search criteria
and is perhaps also attempting to classify the criteria. Perhaps a more suitable method
would be to allow the user to manually classify the context of each term or the entire
query.
Take the word
sash
as an example. The Oxford Dictionary [Ox02] defines this word as
having two meanings, both nouns:
"1. A strip of cloth worn round the waist or over one shoulder.
2. A frame holding the glass in a window."
If a user were able to select the meaning, subject area or context, in which they were
searching, there should be less ambiguity in the result set.
2.4.2 Google Search Suggestions
Google Suggest is probably the most well known interface that provides search criteria
suggestions. Google Suggest, which coincidentally made Ajax so popular [W3S(2)07],
provides alternative and completed suggestions to the user based on the search criteria
as they type them.
2.4.2.1 The Request
We can learn a great deal about Google Suggest by examining the HTTP requests and
responses that are created and received. Let's use the search criteria
lexicon
as an
example.
As soon as we type the letter
l
a GET request is made to Google's Suggest engine. The
request includes four HTTP query values,
hl
,
client
,
js
, and
q
. Based on the values, we
can determine that
hl
is the locale,
client
is the application being used,
js
specifies the
exact format of JavaScript responses, and
q
is the query value:
http://www.google.com/complete/search?hl=en&client=suggest&js=true&q=l
This is the complete request header:
GET /complete/search?hl=en&client=suggest&js=true&q=l HTTP/1.1
Host: www.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.1.8)
Gecko/20071008 Firefox/2.0.0.8
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.
8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.google.com/webhp?complete=1&hl=en
Cookie:
GPC=FW=0:GHV=2:MGLS=0:MGV=0:SG=0:TE=0:TS=0:TV=0:WCYD=0:SIG=knL9H0E5R8onR5e1;
PREF=ID=cf83936c29b22833:TM=1185227391:LM=1185227391:S=z8j494E7LPmpCAKC;
NID=5=RMCFs9jyDZD6KwWDV0g_cO469QXfNur5v-2vLGrOT-
gl4ejFSgwyvCUOhLkfGHlLgIi57Ba7b2C3F2BzcgdXN-99YKCXSv-i1oELFFyDFQS22pDJ9Nt2Xc2-
N0w5r4Gj
Navigation