@elastic/semantic-search
Full-text search using MATCH() for relevant results. Works on text, keyword, and semantic_text fields.
RUN SKILL semantic_search()With parameters:
RUN SKILL semantic_search WITH query = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| query | STRING | — | Search query text |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL semantic_search()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}