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

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.
xmlns:gsa=’http://schemas.google.com/gsa/2007’> 2009-03-26T05:51:32.659Z href=’http://gsa:8000/feeds/contentStatistics/text%2Fpdf’/> href=’http://gsa:8000/feeds/contentStatistics/text%2Fpdf’/>
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.