# How to index the word\_delimiter itself?

**URL:** <https://discuss.elastic.co/t/how-to-index-the-word-delimiter-itself/114727>\
**Category:** Elasticsearch\
**Created:** [January 9, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-to-index-the-word-delimiter-itself/114727 "2018-01-09T15:27:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lea](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lea](https://discuss.elastic.co/u/lea)\
**Post date:** [January 9, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-to-index-the-word-delimiter-itself/114727/1 "2018-01-09T15:27:01Z")

</div>

When analyzing alpha+beta delta, I want the outcome of tokens to be `[ALPHA+BETA DELTA, ALPHABETADELTA, ALPHA, BETA, DELTA, ALPHA+, ALPHA+BETA]`. My anlyzer gives me the results that I am looking for, except for `[ALPHA+, ALPHA+BETA]`. How can I include them?

```
{
  "index": {
    "number_of_shards": 1,
    "analysis": {
      "filter": {
        "word_joiner": {
          "type": "word_delimiter",
          "catenate_all": true,
          "preserve_original": "true"
        }
      },
      "analyzer": {
        "word_join_analyzer": {
          "type": "custom",
          "filter": [
            "word_joiner",
            "uppercase"
          ],
          "tokenizer": "keyword"
        }
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [January 9, 2018, 3:36pm UTC](https://discuss.elastic.co/t/how-to-index-the-word-delimiter-itself/114727/2 "2018-01-09T15:36:54Z")

</div>

I'm not certain the `word_delimiter` token filter can do what you need. You probably need something more involved. Especially, I don't see how you could get the `ALPHA+` part using `word_delimiter`.

---

<div class="post-metadata">

**Author:** ![lea](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lea](https://discuss.elastic.co/u/lea)\
**Post date:** [January 9, 2018, 3:39pm UTC](https://discuss.elastic.co/t/how-to-index-the-word-delimiter-itself/114727/3 "2018-01-09T15:39:14Z")

</div>

But how can I get the other tokens without using it?

---

<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:** [February 6, 2018, 3:39pm UTC](https://discuss.elastic.co/t/how-to-index-the-word-delimiter-itself/114727/4 "2018-02-06T15:39:40Z")

</div>

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