JSON/Atom Custom Search 
API<https://developers.google.com/custom-search/v1/overview>results data can 
include a "
spelling" object with "*correctedQuery*" and "htmlCorrectedQuery" 
properties.  You can observe this as follows:

Create a Custom Search Engine (CSE):

  http://www.google.com/cse/  

Configure the CSE to search the web:

  http://support.google.com/customsearch/bin/answer.py?hl=en&answer=1210656

Use the JSON/Atom Custom Search API:

  https://developers.google.com/custom-search/v1/overview

Submit this (*misspelled*) query via the API:

  surfboreds

The API will return results for the *uncorrected *query, but the "spelling" 
object will provide "*correctedQuery*" and "htmlCorrectedQuery" properties:

  "spelling": {
    "*correctedQuery*": "*surfboards*",
    "htmlCorrectedQuery": "\u003cb\u003e\u003ci\u003e*surfboards*
\u003c/i\u003e\u003c/b\u003e"
   }

See related documentation:

Use your browser's text search function to find all occurrences of "*
correctedQuery*" in the "Response" section of this page from API 
documentation:

  https://developers.google.com/custom-search/v1/cse/list#response


-- omr

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax-search-api@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-search-api+unsubscr...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/QssYLkBE4tIJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to