I am developing a search solution for my web application for photo objects. I am using Google Site Search. There are various ways to use it, but since I want to be fully compatible with rendering custom search results, I went for the XML option.
It works very simply. I have a search box for an individual order on the site, which is sent to my internal server, the PHP CodeIgniter controller. Then the controller will execute a GET for the Google Site Search XML service, which will return me the search results in XML.
It works brilliantly and gives me full control over rendering output. There is only one small thing. If I am looking for a misspelled word, say, "crocodilw" (must be "crocodile"), I would like to get "did you mean" crocodile? "Functionality that is so common on Google.
This feature works when you use the integration method with the Google Site Search interface. I kind of expected that the correct search clause would be part of the returned XML, but I cannot find it.
Any tips on how this is possible using the XML method?
source share