SiteSearch uses the XML-RPC protocol to communicate between the web site and the server daemon. This is an easy-to-use developer programming interface which can be accessed from just about any programming language. This makes SiteSearch easy to integrate with other aspects of your web applications than Sitellite alone. The following is a list of the XML-RPC commands that the SiteSearch server understands:
| Command | Parameters | Return Value | Description |
| sitesearch.query | string queryString, string access, string status, string ctype, string domain, int limit, int offset | hash | Queries the search index with the specified query. |
| sitesearch.addDocument | hash data, string keyCode | boolean | Adds a document to the search index. Data values should include: url, title, description, keywords, body, access, status, ctype, domain, and mtime. |
| sitesearch.numDocs | none | int | Returns the number of documents in the index. |
| sitesearch.delete | string url or int index id, string keyCode | boolean | Deletes the specified URL from the index. |
| sitesearch.deleteExpired | string timestamp, string keyCode | boolean | Deletes all of the documents in the index with an mtime value less than the provided timestamp. |
| sitesearch.uptime | none | string | Returns the date/time that the server was started. |
Next: Searching file contents
Revision from August 1, 2007 1:15 PM by lux
Forward in time (2 more) | See current | See changes | Linked from: Site Search, Including Site Search