
Google Search Appliance: Administrative API Developer’s Guide: .NET 31
Resetting the Index
Reset the index as follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add a property to updateEntry
updateEntry.AddGsaContent("resetIndex", "1");
myService.UpdateEntry("command", "resetIndex", updateEntry);
Search
The sections that follow describe how to configure the Search features of the Admin Console:
• “Front Ends: Remove URLs and a Relative OneBox” on page 31
• “Output Format XSLT Stylesheet” on page 33
• “KeyMatch Settings” on page 34
• “Related Queries” on page 37
• “Query Suggestion” on page 39
• “Search Status” on page 41
Front Ends: Remove URLs and a Relative OneBox
Retrieve, update, insert, or delete front ends to remove URLs or a relative OneBox for the search
appliance using the
frontend
feed. Retrieve a front end using the following properties.
Retrieving Front Ends, Remove URLs, and a Relative OneBox
Retrieve all the front end information for a search appliance as follows:
// Send a request and print the response
GsaFeed myFeed = myService.GetFeed("frontend");
foreach(GsaEntry myEntry in myFeed.Entries) {
//get information for each myEntry
}
Property Description
frontendOnebox
OneBox Modules that are relative to this front end. This value is a
comma-separated list of OneBox names. The OneBox modules are
triggered for this front end in the order that you specify.
removeUrls
Remove URLs that are relative to this front end. These are URL patterns
that you do not want to appear in the search results for this front end.
Komentáře k této Příručce