# No results when performing wildcard search with query string

**URL:** <https://discuss.elastic.co/t/no-results-when-performing-wildcard-search-with-query-string/2717>\
**Category:** Elasticsearch\
**Created:** [June 15, 2015, 4:53pm UTC](https://discuss.elastic.co/t/no-results-when-performing-wildcard-search-with-query-string/2717 "2015-06-15T16:53:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koziolk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/koziolk/32/672_2.png) [@koziolk](https://discuss.elastic.co/u/koziolk)\
**Post date:** [June 15, 2015, 4:53pm UTC](https://discuss.elastic.co/t/no-results-when-performing-wildcard-search-with-query-string/2717/1 "2015-06-15T16:53:32Z")

</div>

Hi ES users,

I'm having issue getting a result when performing wildcard query searching by a char sequence (DNA sequence in my case). It works perfectly for full full-length sequence and with full-length sequence with a leading and ending wildcard. The issue exists only when searching by a sub sequence for which characters were removed from the beginning of full-length sequence.

1. The following query works fine, result is present (full-length sequence with two wildcards):

2. The following query works fine, result is present (part of the sequence removed from the end):

3. The following DOES NOT work, result is NOT present (part of the sequence removed from the beginning):

Any ideas why I'm getting an empty result for 3rd query?

Thanks,  
Krzysztof

---

<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:07am UTC](https://discuss.elastic.co/t/no-results-when-performing-wildcard-search-with-query-string/2717/2 "2017-07-06T00:07:23Z")

</div>

Closed on July 6, 2017, 12:07am UTC


