# How to create my index to not tokenize on slash "/"?

**URL:** <https://discuss.elastic.co/t/how-to-create-my-index-to-not-tokenize-on-slash/297793>\
**Category:** Elasticsearch\
**Created:** [February 21, 2022, 4:52pm UTC](https://discuss.elastic.co/t/how-to-create-my-index-to-not-tokenize-on-slash/297793 "2022-02-21T16:52:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakotomandimby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakotomandimby/32/48493_2.png) [@rakotomandimby](https://discuss.elastic.co/u/rakotomandimby)\
**Post date:** [February 21, 2022, 4:52pm UTC](https://discuss.elastic.co/t/how-to-create-my-index-to-not-tokenize-on-slash/297793/1 "2022-02-21T16:52:09Z")

</div>

Hello,

The default behaviour of ES to tokenize on slash does not suit me, because my data is really full of slashes.

Tokenizing on space is more relevent in my case, but how to copy the index with the good tokinizing settings?

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 22, 2022, 1:23am UTC](https://discuss.elastic.co/t/how-to-create-my-index-to-not-tokenize-on-slash/297793/2 "2022-02-22T01:23:30Z")

</div>

> **[Whitespace tokenizer | Elasticsearch Guide \[8.0\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-whitespace-tokenizer.html)**

You can use whitespace tokenizer in custom analyzer.

---

<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:** [March 22, 2022, 1:24am UTC](https://discuss.elastic.co/t/how-to-create-my-index-to-not-tokenize-on-slash/297793/3 "2022-03-22T01:24:30Z")

</div>

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