# How to extract the Exact strings or 80% of matched strings from elastic search

**URL:** <https://discuss.elastic.co/t/how-to-extract-the-exact-strings-or-80-of-matched-strings-from-elastic-search/124396>\
**Category:** Elasticsearch\
**Created:** [March 17, 2018, 9:31am UTC](https://discuss.elastic.co/t/how-to-extract-the-exact-strings-or-80-of-matched-strings-from-elastic-search/124396 "2018-03-17T09:31:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 17, 2018, 10:47am UTC](https://discuss.elastic.co/t/how-to-extract-the-exact-strings-or-80-of-matched-strings-from-elastic-search/124396/4 "2018-03-17T10:47:35Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

Anyway, add in your mapping a `search_analyzer: simple` for the field you want to search on.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-extract-the-exact-strings-or-80-of-matched-strings-from-elastic-search/124396)._
