Use GET:site/search to search the index.
Allow several minutes for search index changes to take effect.
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>