I mentioned this as a sensible idea in a different issue, but I've noticed a use case which seems to make it more or less essential.
The search engine allows for 'Rich Snippets' whereby you include 'Structured Data' (by way of RDFa/microformat attributes) in the HTML, and Google returns this data in the XML results so that you can render it.
http://code.google.com/intl/en/apis/customsearch/docs/snippets.html
There doesn't seem to be a definitive list of elements which may appear in the XML as a result of this Structured Data (and once again the documentation on the XML does not even cover their own example!), so we really need to have access to the XML so that we can manipulate the XML in the preprocess_search_results phase to suit individual requirements.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | google_cse_adv-921270-1.patch | 742 bytes | jweowu |
| #1 | google_cse_adv-921270.patch | 710 bytes | jweowu |
Comments
Comment #1
jweowu commentedComment #2
jweowu commentedThe previous patch only made the XML for each RES->R element available.
This makes the full response XML available too.
(Copy-on-write should mean the overall storage for all of this isn't very much more than the size of a single copy of the response.)
Comment #3
meba commentedSounds about right. Committed, thanks!
Comment #5
freakalis commentedMaybe you could make a new release where this patch is included?