younifyd
Menu

Analyze (GET /{index}/_analyze)

Analyze

GET/{index}/_analyze

Use it in a workflow

  1. Add a step and choose the OpenSearch connector.
  2. Pick the Analyze (GET /{index}/_analyze) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{analyzeGetIndexAnalyze.response.data}}.

Request

Path parameters

indexstringrequired

Index used to derive the analyzer. If specified, the `analyzer` or field parameter overrides this value. If no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer.

Query parameters

indexstring

The name of the index to scope the operation.

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

Returns 200 with an object. Read it in later steps with {{analyzeGetIndexAnalyze.response.data.<field>}}.

detailobject

The detailed analysis results.

analyzerobject2 fields

The analyzer results.

charfiltersarray<object>2 fields

The list of character filter results.

custom_analyzerbooleanrequired

Whether a custom analyzer was used.

tokenfiltersarray<object>2 fields

The list of token filter results.

tokenizerobject2 fields

The token filter or tokenizer results.

tokensarray<object>
end_offsetinteger (int32)required

The ending character offset of the token.

positioninteger (int32)required

The position of the token.

positionLengthinteger (int32)

The length of the token position.

start_offsetinteger (int32)required

The starting character offset of the token.

tokenstringrequired

The token string.

typestringrequired

The type of the token.

json
{
  "detail": {
    "custom_analyzer": false,
    "analyzer": {
      "name": "string",
      "tokens": [
        {
          "bytes": "string",
          "end_offset": 0,
          "position": 0,
          "positionLength": 0,
          "start_offset": 0,
          "termFrequency": 0,
          "token": "string",
          "type": "string",
          "keyword": false
        }
      ]
    },
    "charfilters": [
      {
        "filtered_text": [
          "string"
        ],
        "name": "string"
      }
    ],
    "tokenfilters": [
      {
        "name": "string",
        "tokens": [
          {
            "bytes": "string",
            "end_offset": 0,
            "position": 0,
            "positionLength": 0,
            "start_offset": 0,
            "termFrequency": 0,
            "token": "string",
            "type": "string",
            "keyword": false
          }
        ]
      }
    ],
    "tokenizer": {
      "name": "string",
      "tokens": [
        {
          "bytes": "string",
          "end_offset": 0,
          "position": 0,
          "positionLength": 0,
          "start_offset": 0,
          "termFrequency": 0,
          "token": "string",
          "type": "string",
          "keyword": false
        }
      ]
    }
  },
  "tokens": [
    {
      "end_offset": 0,
      "position": 0,
      "start_offset": 0,
      "token": "string",
      "type": "string",
      "positionLength": 0
    }
  ]
}

Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.