About this endpoint
What it does
Performs a ranked fuzzy search by comparing a source string against a space-separated target string and returns the best matches. The request controls how many ranked results to return, how many to skip, and whether comparisons should ignore accents or use Unicode normalization.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| accent-insensitive | Boolean | No | Default: false |
| unicode-normalized | Boolean | No | Default: false |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| limit | Integer | No | Maximum number of results to return. Minimum: 0. Default: 0, where 0 means all results. |
| offset | Integer | No | Number of ranked results to skip. Minimum: 0. Default: 0. |
| source | String | Yes | The search term. |
| target | String | Yes | Space-separated words to search within. |
Response
Returns a JSON object with a data array field. Each item in data is an object with a match string field and a distance integer field, where distance is the Levenshtein distance from the source.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object Array | Yes | Array of ranked matches. Each item contains:<br>match: the matched string.<br>distance: Levenshtein distance from the source. |