# Quoted text in full text query

**URL:** <https://discuss.elastic.co/t/quoted-text-in-full-text-query/5732>\
**Category:** Elasticsearch\
**Created:** [October 31, 2011, 11:12pm UTC](https://discuss.elastic.co/t/quoted-text-in-full-text-query/5732 "2011-10-31T23:12:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayrov\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayrov_2/32/3088_2.png) [@ayrov\_2](https://discuss.elastic.co/u/ayrov_2)\
**Post date:** [October 31, 2011, 11:12pm UTC](https://discuss.elastic.co/t/quoted-text-in-full-text-query/5732/1 "2011-10-31T23:12:11Z")

</div>

I'm quite new to Elastic Search, and currently facing some  
difficulties trying to write down search query that holds both quoted  
text and separate words.  
e.g. lets say user entered in search box something like this:

"Quoted query" just words

So the question is how to map such query to Elastic Search query DSL?

It's preferable to use query\_string because I need wildcards applied  
to separate words  
e.g.  
"query\_string" : {  
"default\_field": "\_all",  
"query" : "_just_ _words_"  
}

Thanks for your help.

Alex

---

<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, 3:50am UTC](https://discuss.elastic.co/t/quoted-text-in-full-text-query/5732/2 "2017-07-06T03:50:19Z")

</div>


