# Why is the response of the \_analyze API not consistent?

**URL:** <https://discuss.elastic.co/t/why-is-the-response-of-the-analyze-api-not-consistent/304464>\
**Category:** Elasticsearch\
**Created:** [May 11, 2022, 12:31pm UTC](https://discuss.elastic.co/t/why-is-the-response-of-the-analyze-api-not-consistent/304464 "2022-05-11T12:31:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandragergawi](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@sandragergawi](https://discuss.elastic.co/u/sandragergawi)\
**Post date:** [May 11, 2022, 12:31pm UTC](https://discuss.elastic.co/t/why-is-the-response-of-the-analyze-api-not-consistent/304464/1 "2022-05-11T12:31:14Z")

</div>

Hi!  
We are using Elasticsearch 7.10.2 and we noticed that the response received when the `{indexName}/_analyze` API is called repetitively with the same request, is sometimes different.  
For instance, given the following request:

```auto
{
  "filter": [],
  "char_filter": [
    "some_custom_char_filter"
  ],
  "text": "some text",
  "explain": true,
  "attributes": []
}

```

the response sometimes contains `tokenFilters: []` and sometimes `tokenFilters: null`.

Can you help me understand why and how can I have a consistent response?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 8, 2022, 12:31pm UTC](https://discuss.elastic.co/t/why-is-the-response-of-the-analyze-api-not-consistent/304464/2 "2022-06-08T12:31:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
