Content statistics – Google Search Appliance Administrative API Developers Guide: .NET User Manual
Page 29

Google Search Appliance: Administrative API Developer’s Guide: .NET
29
GsaEntry entry = myService.GetEntry("diagnostics",
"http://server.com/secured/test1/doc_0_2.html");
Console.WriteLine("Collection List: " + entry.GetGsaContent("collectionList"));
Console.WriteLine("Forward Links: " + entry.GetGsaContent("forwardLinks"));
Console.WriteLine("Backward Links: " + entry.GetGsaContent("backwardLinks"));
Console.WriteLine("Is Cached: " + entry.GetGsaContent("isCached"));
Console.WriteLine("Document Date: " + entry.GetGsaContent("date"));
Console.WriteLine("Last Modified Date: " + entry.GetGsaContent
("lastModifiedDate"));
Console.WriteLine("Latest Serving Version Timestamp: " +
entry.getGsaContent("latestOnDisk"));
Console.WriteLine("Currently In Process: " + entry.getGsaContent
("currentlyInflight"));
Console.WriteLine("Content Size: " + entry.getGsaContent("contentSize"));
Console.WriteLine("Content Type: " + entry.getGsaContent("contentType"));
Console.WriteLine("Crawl Frequency: " + entry.getGsaContent("crawlFrequency"));
Console.WriteLine("Crawl History: " + entry.getGsaContent("crawlHistory"));
Content Statistics
Retrieve content statistics for each kind of document using the contentStatistics feed.
Common query parameters for all requests:
Content statistics entry properties:
Retrieving Content Statistics For All Crawled Files
Retrieve content statistics for all crawled files in a search appliance by sending an authenticated GET
request to the root entry of the contentStatistics feed.
Parameter
Description
collectionName
Name of the collection for which you want to view content statistics.
Property
Description
avgSize
The average document size for this content type.
Entry Name
The MIME type of the documents, such as, plain/text.
maxSize
The maximum document size for the crawled files with this MIME type.
minSize
The minimum document size for the crawled files with this MIME type.
numFiles
The total number of crawled files for this MIME type.
totalSize
The total size of all crawled files for this MIME type.