search_index_index_search
Search an index using a keyword query to retrieve top matching documents ranked by BM25 relevance score. Optionally restrict the search to a specific field for targeted results.
Instructions
[search_index] Search an index with a keyword query. Returns top matching documents with _score (BM25). field restricts to one field.
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": {
"name": "<name>",
"query": "<query>"
},
"name": "search_index_index_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| query | Yes | ||
| top_n | No | ||
| field | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |