search
/search allows you to perform full text searches over a dictionary. Dictionaries must be indexed before this endpoint is used, otherwise it will throw an error. It is equivalent to the search CLI command. Results are returned only as JSON.
Example Usage
curl "http://localhost:5005/search?dictionary=wikieng&query=dog"
Parameters
| Name | Description | Default Value | Optional? |
|---|---|---|---|
dictionary | The alias of the dictionary to use (added via dictionaries add). | Only if a single dictionary is being served. | |
query | The query to lookup. Unlike lookup, you can only specify this parameter once per request. | ❌ |