# Wildcard phrases with slop using string query

**URL:** <https://discuss.elastic.co/t/wildcard-phrases-with-slop-using-string-query/26638>\
**Category:** Elasticsearch\
**Created:** [July 31, 2015, 11:31am UTC](https://discuss.elastic.co/t/wildcard-phrases-with-slop-using-string-query/26638 "2015-07-31T11:31:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Vladimir\_Sidorenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vladimir_sidorenko/32/3948_2.png) [@Vladimir\_Sidorenko](https://discuss.elastic.co/u/Vladimir_Sidorenko)\
**Post date:** [July 31, 2015, 11:31am UTC](https://discuss.elastic.co/t/wildcard-phrases-with-slop-using-string-query/26638/1 "2015-07-31T11:31:21Z")

</div>

Elastic supports slop for simple phrases, like "quick fox"~2, but when wildcards are used in string, it doesn't work: "qui\* fox"~2

I've found a workaround for this using json query dsl using span\_near and match prefix: [http://grokbase.com/t/gg/elasticsearch/146vmnsj7r/workaround-for-using-wild-cards-in-phrases-and-proximity-searches-elastic-search](http://grokbase.com/t/gg/elasticsearch/146vmnsj7r/workaround-for-using-wild-cards-in-phrases-and-proximity-searches-elastic-search)

The thing is that I must allow users to make such queries using string query. Is there any other workaround that uses just query string syntax or maybe there's some plugin that extends query string syntax for this specific use case?

Thank you

---

_[View the full topic](https://discuss.elastic.co/t/wildcard-phrases-with-slop-using-string-query/26638)._
