🔍

Fuzzy Search

Verified

@elastic/fuzzy-search

Search with typo tolerance using fuzzy matching

Usage

RUN SKILL fuzzy_search()

With parameters:

RUN SKILL fuzzy_search WITH query = 'value'

Parameters

NameTypeDefaultDescription
querySTRINGSearch query

Returns

ARRAY— An array of matching documents

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL fuzzy_search()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}