Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 41

Advertising
background image

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

41

Retrieving Content Statistics for All Document Types

To retrieve content statistics for all kinds of document in a search appliance, send an authenticated GET
request to the root entry of the contentStatistics feed.

http://Search_Appliance:8000/feeds/contentStatistics

A list of content statistics entries is returned.

<?xml version=’1.0’ encoding=’UTF-8’?>

<feed xmlns=’http://www.w3.org/2005/Atom’

xmlns:openSearch=’http://a9.com/-/spec/opensearchrss/1.0/’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>

<id>http://gsa:8000/feeds/contentStatistics</id>
<updated>2009-03-26T05:45:33.701Z</updated>
<link rel=’http://schemas.google.com/g/2005#feed’

type=’application/atom+xml’
href=’http://gsa:8000/feeds/contentStatistics’/>

<link rel=’self’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/contentStatistics’/>

<generator version=’0.5’ uri=’http://gsa:8000/gsa’>

Google Search Appliance

</generator>
<openSearch:startIndex>1</openSearch:startIndex>

<entry>

<id>http://gsa:8000/feeds/contentStatistics/text/html</id>
<updated>2009-03-26T05:45:33.701Z</updated>
<app:edited xmlns:app=’http://purl.org/atom/app#’>

2009-03-26T05:45:33.701Z

</app:edited>
<link rel=’self’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/contentStatistics’/>

<link rel=’edit’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/contentStatistics’/>

<gsa:content name=’entryID’>text/html</gsa:content>
<gsa:content name=’numFiles’>1,037</gsa:content>
<gsa:content name=’minSize’>606</gsa:content>
<gsa:content name=’avgSize’>2.5k</gsa:content>
<gsa:content name=’totalSize’>2.5M</gsa:content>
<gsa:content name=’maxSize’>38k</gsa:content>

</entry>

<entry>

<id>http://gsa:8000/feeds/contentStatistics/text/pdf</id>
<updated>2009-03-26T05:45:33.701Z</updated>
<app:edited xmlns:app=’http://purl.org/atom/app#’>

2009-03-26T05:45:33.701Z

</app:edited>
<link rel=’self’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/contentStatistics’/>

<link rel=’edit’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/contentStatistics’/>

<gsa:content name=’entryID’>text/pdf</gsa:content>
<gsa:content name=’numFiles’>3</gsa:content>
<gsa:content name=’minSize’>24k</gsa:content>
<gsa:content name=’avgSize’>136k</gsa:content>
<gsa:content name=’totalSize’>407k</gsa:content>
<gsa:content name=’maxSize’>217k</gsa:content>

</entry>

Advertising