# Analyzer Problems

**URL:** https://discuss.elastic.co/t/analyzer-problems/128721
**Category:** Elasticsearch
**Created:** [April 19, 2018, 2:07pm UTC](https://discuss.elastic.co/t/analyzer-problems/128721 "2018-04-19T14:07:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kratosonyy](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@Kratosonyy](https://discuss.elastic.co/u/Kratosonyy)
#### Post date: [April 19, 2018, 2:07pm UTC](https://discuss.elastic.co/t/analyzer-problems/128721/1 "2018-04-19T14:07:36Z")

</div>

Hey guys, ES newbie here - I'm currently working on a data-set having the format of the following:

// "desc": "The Quick and Brown Fox",  
// "amount": 1000

I'm passing the "desc" field through a stop analyzer and it is functioning correctly as verified when searching. However, I would like something to show me the results of the analyzer as they are seen by the ES Backend. Essentially, I would like the keywords produced by the analyzer for the entire data-set to be produced as an output. similar to this:

// "desc": ["quick", "brown", "fox"]  
// "amount": [1000]

Thanks in advance

---

<div class="post-metadata">

### Author: ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)
#### Post date: [April 20, 2018, 3:49pm UTC](https://discuss.elastic.co/t/analyzer-problems/128721/2 "2018-04-20T15:49:37Z")

</div>

It won't run on your entire dataset, but are you aware of the [Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html)? For a given text, it will show you the effect of an analyzer. For example:

```auto
GET _analyze
{
  "analyzer" : "stop",
  "text" : "The Quick and Brown Fox"
}

```

returns:

```auto
{
  "tokens": [
    {
      "token": "quick",
      "start_offset": 4,
      "end_offset": 9,
      "type": "word",
      "position": 1
    },
    {
      "token": "brown",
      "start_offset": 14,
      "end_offset": 19,
      "type": "word",
      "position": 3
    },
    {
      "token": "fox",
      "start_offset": 20,
      "end_offset": 23,
      "type": "word",
      "position": 4
    }
  ]
}

```

---

<div class="post-metadata">

### Author: ![Kratosonyy](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@Kratosonyy](https://discuss.elastic.co/u/Kratosonyy)
#### Post date: [April 23, 2018, 8:36am UTC](https://discuss.elastic.co/t/analyzer-problems/128721/3 "2018-04-23T08:36:48Z")

</div>

Hi Abdon,

Thanks for the reply. I did use the analyze API, however, as you rightly said, it only gives the effect of the analyzer on the given text. I have found what I was looking for however - Term Vectors provide me with the tokens that the analyzer creates when indexing.

---

<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: [May 21, 2018, 8:38am UTC](https://discuss.elastic.co/t/analyzer-problems/128721/4 "2018-05-21T08:38:39Z")

</div>

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