Reset index, Retrieving content statistics for a document type, Retrieving status after resetting the index – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 42

Advertising
background image

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

42

Retrieving Content Statistics for a Document Type

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

http://Search_Appliance:8000/feeds/contentStatistics/text%2Fpdf

A content statistics entry is returned.

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

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

xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/contentStatistics/text%2Fpdf</id>
<updated>2009-03-26T05:51:32.659Z</updated>
<app:edited xmlns:app=’http://purl.org/atom/app#’>

2009-03-26T05:51:32.659Z

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

href=’http://gsa:8000/feeds/contentStatistics/text%2Fpdf’/>

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

href=’http://gsa:8000/feeds/contentStatistics/text%2Fpdf’/>

<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>

Reset Index

Reset your crawling queues and delete your search index, removing all its contents.

Note: If you reset an index that has a large document corpus, recrawling the index can take many days
to complete.

Retrieving Status After Resetting the Index

To check the status of resetting the index, send an authenticated GET request to the following URL:

http://Search_Appliance:8000/feeds/command/resetIndex

Property

Description

resetIndex

Set to 1 to reset the index or 0 to not reset the index. If viewing, 1 indicates
that the index was reset, 0 indicates that the index was not reset.

resetStatusCode

Status code for resetting the index.

resetStatusMessage

Status message. Possible values are ERROR, PROGRESS, or READY.

Advertising