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.

Comments

jweowu’s picture

Status: Active » Needs review
StatusFileSize
new710 bytes
jweowu’s picture

StatusFileSize
new742 bytes

The 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.)

meba’s picture

Status: Needs review » Fixed

Sounds about right. Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

freakalis’s picture

Maybe you could make a new release where this patch is included?