analyze_text
Diagnose empty match queries by running text through an analyzer to compare how indexed text and search terms tokenize.
Instructions
Run text through an analyzer and see the resulting tokens. Use it when a match query returns nothing: it shows exactly how the field's analyzer tokenizes the indexed text vs your search term.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "analyze_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| field | No | ||
| index | No | ||
| analyzer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |