# Word delimiter (or switch from hyphen to underline) for all existing indexes

**URL:** <https://discuss.elastic.co/t/word-delimiter-or-switch-from-hyphen-to-underline-for-all-existing-indexes/248984>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [September 17, 2020, 1:42pm UTC](https://discuss.elastic.co/t/word-delimiter-or-switch-from-hyphen-to-underline-for-all-existing-indexes/248984 "2020-09-17T13:42:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandikata](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandikata/32/73421_2.png) [@sandikata](https://discuss.elastic.co/u/sandikata)\
**Post date:** [September 17, 2020, 1:42pm UTC](https://discuss.elastic.co/t/word-delimiter-or-switch-from-hyphen-to-underline-for-all-existing-indexes/248984/1 "2020-09-17T13:42:24Z")

</div>

Hello, i am trying to use word\_delimiter for existing indexes, because all the hyphens are ignored while search for example "test-test" is searched as two separate patterns "test test" instead of test-test.

Documentations is not useful at all, there's nothing which help me out.

I've tried a lot of thinks from documentation but they just not work, and there's no clear docs and examples.

[https://bpa.st/D6IQ](https://bpa.st/D6IQ) there's what i am trying.

And the result.

```auto
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/create] is unauthorized for user [elastic]"}],"type":"security_exception","reason":"action [indices:admin/create] is unauthorized for user [elastic]","caused_by":{"type":"illegal_state_exception","reason":"There are no external requests known to support wildcards that don't support replacing their indices"}},"status":403}
```

---

<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:** [October 15, 2020, 1:42pm UTC](https://discuss.elastic.co/t/word-delimiter-or-switch-from-hyphen-to-underline-for-all-existing-indexes/248984/2 "2020-10-15T13:42:25Z")

</div>

Closed on October 15, 2020, 1:42pm UTC

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