# Can get only one kind of search to to return results

**URL:** <https://discuss.elastic.co/t/can-get-only-one-kind-of-search-to-to-return-results/65681>\
**Category:** Elasticsearch\
**Created:** [November 10, 2016, 2:52pm UTC](https://discuss.elastic.co/t/can-get-only-one-kind-of-search-to-to-return-results/65681 "2016-11-10T14:52:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkarnecki](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dkarnecki](https://discuss.elastic.co/u/dkarnecki)\
**Post date:** [November 10, 2016, 2:52pm UTC](https://discuss.elastic.co/t/can-get-only-one-kind-of-search-to-to-return-results/65681/1 "2016-11-10T14:52:37Z")

</div>

I have tried many queries to return phrases from our indexes. I'm calling this a full text search.

The individual setting up our elasticsearch indexes came up with the following form of search:  
{"query": {"bool":{"must":[{"wildcard":{"DESC":" + phrase + "}}]}}}  
Unless I do a wildcard search I do not get any results or correct results.

The phrase is of the form, for example: "_post traumatic stress disorder_".  
{"query": {"bool":{"must":[{"wildcard":{"DESC":" + "_post traumatic stress disorder_" + "}}]}}}

Our web app is developed in C# (the back slash is an escape character not included in the search when it's submitted). I'm doing the searches via the browser setting the commands via body searches.

This format return exact matches. If the search phrase is "post traumatic stress disorder", all records returned  
contain the exact phrase "post traumatic stress disorder". I do not get back the documents containing  
"Post Traumatic Stress Disorder".

How can I get all documents containing "post traumatic stress disorder" regardless of the case the phrase contains?

Thanks,  
Dave K

---

<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:** [December 8, 2016, 2:52pm UTC](https://discuss.elastic.co/t/can-get-only-one-kind-of-search-to-to-return-results/65681/2 "2016-12-08T14:52:42Z")

</div>

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