Connector managers, Recrawling url patterns, Inserting a connector manager – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 24

Advertising
background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

24

If you discover a set of URLs that you want crawled (usually because changes made to the web pages or
because of a temporary error or misconfiguration present when the crawler last tried to crawl the URL),
you can enter the pattern to inject it quickly into the queue of URLs the search appliance is crawling.

Recrawling URL Patterns

To recrawl URL patterns, send an authenticated PUT request to the following URL:

http://Search_Appliance:8000/feeds/command/recrawlNow

The following is an example of a request body:

<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’

xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’entryID’>recrawlNow</gsa:content>
<gsa:content name=’recrawlURLs’>http://recrawl/page.html</gsa:content>

</entry>

The following is an example of a request body with multiple recrawl URLs:

<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’

xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’entryID’>recrawlNow</gsa:content>
<gsa:content name=’recrawlURLs’>http://recrawl/page1.html

http://recrawl/page2.html
http://recrawl/page3.html

</gsa:content>

</entry>

Connector Managers

Insert, retrieve, update, and delete connector managers on a search appliance.

Inserting a Connector Manager

To insert a new connector manager, send an authenticated POST request to the following URL:

http://Search_Appliance:8000/feeds/connectorManager

Property

Description

recrawlURLs

URL patterns to be recrawled.

Property

Description

description

A description of the connector manager.

status

The status of the connection between a Google Search Appliance and the
connector manager deployed on an application server. The value can be
Connected or Disconnected. The Disconnected mode can occur if the
application server is down or there are problems on the network.

url

The URL of the application server where the connector manager is
installed.

Advertising