Overview

internal. Rebuild the Deki Lucene index

Uri Parameters

None

Query Parameters

None

Return Codes
NameValueDescription
Forbidden403Deki Wiki API key or Administrator access is required.
Ok200The request completed successfully

Message Format

None

Implementation Notes

Use GET:site/search to search the index.

Allow several minutes for search index changes to take effect. 

Code Samples

The following code example rebuilds the search index:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("site", "search", "rebuild").Post();

To perform the operation using command line CURL (where <AUTHTOKEN> is the authentication token returned from GET:users/authenticate):

curl -data --cookie authtoken=<AUTHTOKEN> http://deki-hayes/@api/deki/site/search/rebuild

Or using the API key (where <APIKEY> is the value found under <apikey>...</apikey> in /etc/deki/mindtouch.deki.startup.xml):

curl -data http://deki-hayes/@api/deki/site/search/rebuild?apikey=<APIKEY>
Tag page
You must login to post a comment.