public. Search the Deki index
None
| Name | Type | Description |
| authenticate | bool? | Force authentication for request (default: false) |
| constraint | string? | Additional search constraint (ex: language:en-us AND type:wiki) default: none |
| q | string | lucene search string |
| sortby | {score, title, date, size, wordcount}? | Sort field. Prefix value with '-' to sort descending. default: score |
| Name | Value | Description |
| BadRequest | 400 | Invalid input parameter or request body |
| Ok | 200 | The request completed successfully |
Output:
Content-type=application/json
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.
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"]]