# Search for terms containing hyphen (-) on AWS elasticsearch

**URL:** <https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864>\
**Category:** Elasticsearch\
**Created:** [August 3, 2018, 8:02am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864 "2018-08-03T08:02:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Levi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_levi/32/34062_2.png) [@\_Levi](https://discuss.elastic.co/u/_Levi)\
**Post date:** [August 3, 2018, 8:02am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864/1 "2018-08-03T08:02:14Z")

</div>

I just read the article about : [How to search for terms containing hyphen (-) on \_all field?](https://discuss.elastic.co/t/how-to-search-for-terms-containing-hyphen-on--all-field/81335), it is required to do /\_close /\_settings /\_open operations, but when I do in AWS elasticsearch, I can't update the settings of my current index. I'm using Kibana 6.2.3  
From AWS itself [https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-supported-es-operations.html](https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-supported-es-operations.html), they didn't support /\_close and /\_open operations.

Any idea how to solve this?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 3, 2018, 8:04am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864/2 "2018-08-03T08:04:07Z")

</div>

It might be easier to apply the mapping when you create the index, so you don't have to close it.

---

<div class="post-metadata">

**Author:** ![\_Levi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_levi/32/34062_2.png) [@\_Levi](https://discuss.elastic.co/u/_Levi)\
**Post date:** [August 3, 2018, 8:14am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864/3 "2018-08-03T08:14:06Z")

</div>

I'm using AWS lambda to send logs to Kibana, I tried it Dev Tool but not allowed by AWS.  
So Do I need create the index manually from the beginning by adding tokenizer in properties?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 3, 2018, 8:21am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864/4 "2018-08-03T08:21:24Z")

</div>

I leave Mark answering you as he started but did you look at [https://www.elastic.co/cloud](https://www.elastic.co/cloud) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL and what is coming like Canvas...

---

<div class="post-metadata">

**Author:** ![\_Levi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_levi/32/34062_2.png) [@\_Levi](https://discuss.elastic.co/u/_Levi)\
**Post date:** [August 6, 2018, 10:21am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864/5 "2018-08-06T10:21:48Z")

</div>

[Problem Solved]  
I run this command in Dev Tools

POST levitest/\_search  
{  
"query": {  
"match": {  
"levi\_field": "levitest-levitest"  
}  
}  
}

---

<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:** [September 3, 2018, 10:21am UTC](https://discuss.elastic.co/t/search-for-terms-containing-hyphen-on-aws-elasticsearch/142864/6 "2018-09-03T10:21:49Z")

</div>

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