Connector managers, Recrawling url patterns, Adding a connector manager – Google Search Appliance Administrative API Developers Guide: Java User Manual
Page 17
Google Search Appliance: Administrative API Developer’s Guide: Java
17
Recrawling URL Patterns
If you discover that a set of URLs that you want to have in the search index are not being crawled you
can inject a URL pattern into the queue of URLs that the search appliance is crawling. URLs may not
appear in the index because changes were made to the web pages, or because a temporary error or
misconfiguration was present when the crawler last tried to crawl the URL.
Recrawling URL Patterns Example
Recrawl URL patterns as follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add a property to updateEntry
updateEntry.addGsaContent("recrawlURLs", "http://recrawl/page.html");
// Send the request
myClient.updateEntry("command", "recrawlNow", updateEntry);
Connector Managers
Add, retrieve, update, and delete a connector manager associated with a search appliance.
Adding a Connector Manager
Add a connector manager to a search appliance as follows:
// Create an entry to hold properties to insert
GsaEntry insertEntry = new GsaEntry();
// Add property for insertEntry
insertEntry.addGsaContent("entryID", "ConnectorManagerOne");
insertEntry.addGsaContent("description", "Connector Manager One Description");
insertEntry.addGsaContent("url", "http://example.com:port/");
// Send the request
myClient.insertEntry("connectorManager", insertEntry);
Property
Description
recrawlURLs
URL patterns to be recrawled.
Property
Description
description
A description of the connector manager.
url
The URL of the application server where the connector manager is installed.
status
The status of the connection between the search appliance and the connector
manager that is deployed on an application server. The value can be Connected
or Disconnected. The Disconnected value may occur if the application server
is down or there are problems on the network.