beautypg.com

Feeding content from a database, Saving your xml feed, Feed limitations – Google Search Appliance Feeds Protocol Developers Guide User Manual

Page 27: Pushing a feed to the google search appliance

background image

Google Search Appliance: Feeds Protocol Developer’s Guide

27

Feeding Content from a Database

To push records from a database into the search appliance’s index, you use a special content feed that is
generated by the search appliance based on parameters that you set in the Admin Console. To set up a
feed for database content, log into the Admin Console and choose Content Sources > Databases. You
can find more information on how to define a database-driven data source in the online help that is
available in the Admin Console, and in the section “Database Crawling and Serving” in Administering
Crawl.

Records from a database cannot be served as secure content.

Saving your XML Feed

You should save a backup copy of your XML Feed in case you need to push it again. For example, if you
perform a version update that requires you to rebuild the index, you must push all your feeds again to
restore them to the search appliance. The search appliance does not archive copies of your feeds.

Feed Limitations

For information about feed limitations, see

Specifications and Usage Limits

.

Pushing a Feed to the Google Search Appliance

This section describes how to design a feed client. To design your own feed client, you should be
familiar with these technologies:

HTTP—Hypertext Transfer Protocol (

http://www.w3.org/Protocols/

)

XML—Extensible Markup Language (

http://www.w3.org/XML/

)

A scripting language, such as Python

If you don’t want to design your own feed client script, you can use one of the following methods to
push your feed:

Google provides an example of a Python 2.x feed client script,

pushfeed_client.py

, that you can use

to push an XML feed. (Google also provides a Python 3 version,

pushfeed_client3.py

). You can also

use this script in a cron job to automate feeds.

“Using a Web Form Feed Client” on page 28 explains how to write a simple HTML form that allows a
user to push an XML feed from a web page. Adapt the HTML for your use and add this page to any
web server that has HTTP access to the search appliance.

Important:

The IP address of the computer that hosts the feed client must be in the List of Trusted IP

Addresses. In the Admin Console, go to Content Sources > Feeds, and scroll down to List of Trusted
IP Addresses. Verify that the IP address for your feed client appears in this list.