# Why ElasticSearch returns data only if query string more than 4 symbols?

**URL:** https://discuss.elastic.co/t/why-elasticsearch-returns-data-only-if-query-string-more-than-4-symbols/1132
**Category:** Elasticsearch
**Created:** [May 21, 2015, 9:29pm UTC](https://discuss.elastic.co/t/why-elasticsearch-returns-data-only-if-query-string-more-than-4-symbols/1132 "2015-05-21T21:29:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Oleg\_P](https://avatars.discourse-cdn.com/v4/letter/o/ccd318/32.png) [@Oleg\_P](https://discuss.elastic.co/u/Oleg_P)
#### Post date: [May 21, 2015, 9:29pm UTC](https://discuss.elastic.co/t/why-elasticsearch-returns-data-only-if-query-string-more-than-4-symbols/1132/1 "2015-05-21T21:29:35Z")

</div>

Why ElasticSearch returns data only if query string is more than 4 symbols? Where I can to setting this? I use Elastica PHP client.  
For example if I pass one symbol "O" in query I get empty result, if pass full word "Oleg" I get this. I tried to add filter for index: nGram, and set for it params: 1, 20, but without success

I can share my code

---

<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: [July 6, 2017, 12:12am UTC](https://discuss.elastic.co/t/why-elasticsearch-returns-data-only-if-query-string-more-than-4-symbols/1132/2 "2017-07-06T00:12:31Z")

</div>


