beautypg.com

Grouping records together, Providing content in the feed – Google Search Appliance Feeds Protocol Developers Guide User Manual

Page 11

background image

Google Search Appliance: Feeds Protocol Developer’s Guide

11

Grouping Records Together

Record elements must be contained inside the group element. The group element also allows you to
apply an action to many records at once. For example, this:



Is equivalent to this:


action="delete"/>
action="delete"/>

However, if you define any actions for records as a group, the record’s definition always overrides the
group’s definition. For example:


action="add"/>

In this example, hello01 and hello03 would be deleted, and hello02 would be updated.

Providing Content in the Feed

You add document content by placing it inside the record definition for your content feed. You can
compress content to improve performance, for more information, see “Content Compression” on
page 12.

For example, using text content:

Hello world. Here is some page content.

You can also define content as HTML:



To include non-text documents such as .pdf or .doc files, you must encode the content by using
base64 encoding and specifying the appropriate mimetype. Using base64 encoding ensures that the
feed can be parsed as valid XML.