Overview

public. Search the Deki index

Uri Parameters

None

Query Parameters
NameTypeDescription
authenticatebool?Force authentication for request (default: false)
constraintstring?Additional search constraint (ex: language:en-us AND type:wiki) default: none
qstringlucene search string
sortby{score, title, date, size, wordcount}?Sort field. Prefix value with '-' to sort descending. default: score
Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Ok200The request completed successfully

Message Format

Output:

Content-type=application/json

Implementation Notes

Refer here for more information on the Lucene search string format.

Refer here for more information about OpenSearch.  Refer here for more information about OpenSearch suggestions.

Code Samples

The following code example finds the OpenSearch suggestions for title "Subpage_1":

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("site", "opensearch", "suggestions").With("q", "Subpage_1").Get();

Sample response:

["subpage_1", ["Subpage 1"]]

   

Tag page
You must login to post a comment.