exploreFieldValues
Analyze and retrieve possible values for a specific field within an OpenSearch index, with options to filter results and limit the number of returned values.
Instructions
Explore possible values for a field in an index
Input Schema
Name | Required | Description | Default |
---|---|---|---|
field | Yes | Field name to explore | |
index | Yes | Index pattern to search | |
maxValues | No | Maximum number of values to return | |
query | No | Optional query to filter documents | * |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"field": {
"description": "Field name to explore",
"type": "string"
},
"index": {
"description": "Index pattern to search",
"type": "string"
},
"maxValues": {
"default": 20,
"description": "Maximum number of values to return",
"type": "number"
},
"query": {
"default": "*",
"description": "Optional query to filter documents",
"type": "string"
}
},
"required": [
"index",
"field"
],
"type": "object"
}