# Query String does not return result on full title search, but works when searched with few words

**URL:** <https://discuss.elastic.co/t/query-string-does-not-return-result-on-full-title-search-but-works-when-searched-with-few-words/64862>\
**Category:** Elasticsearch\
**Created:** [November 3, 2016, 12:45pm UTC](https://discuss.elastic.co/t/query-string-does-not-return-result-on-full-title-search-but-works-when-searched-with-few-words/64862 "2016-11-03T12:45:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renuka](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Renuka](https://discuss.elastic.co/u/Renuka)\
**Post date:** [November 3, 2016, 12:45pm UTC](https://discuss.elastic.co/t/query-string-does-not-return-result-on-full-title-search-but-works-when-searched-with-few-words/64862/1 "2016-11-03T12:45:24Z")

</div>

I'm using Elasticsearch 2.2.0.

I have a document with title field value "What's the Cost of Living? Comprehension Questions" analysed and stored with all those words. fielddata\_fields return - "title": ["comprehension" , "cost" , "living" , "of" , "questions" , "the" , "what's"] .

When I search as {"query\_string": { "query": "what's AND the AND cost AND of AND living" }} - yields the above mentioned document. But when I search with whole title as "what's AND the AND cost AND of AND living AND comprehension AND questions", no results were found.

What might be the reason, I doubt on "?" as many such titles are working only partially. but as fielddata\_fields has all the words I search for, it should be returned. Any help is appreciated. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Renuka](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Renuka](https://discuss.elastic.co/u/Renuka)\
**Post date:** [November 4, 2016, 5:04am UTC](https://discuss.elastic.co/t/query-string-does-not-return-result-on-full-title-search-but-works-when-searched-with-few-words/64862/2 "2016-11-04T05:04:44Z")

</div>

Fixed the problem. It is due to my custom setting. thanks.

---

<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 5, 2017, 10:06pm UTC](https://discuss.elastic.co/t/query-string-does-not-return-result-on-full-title-search-but-works-when-searched-with-few-words/64862/3 "2017-07-05T22:06:40Z")

</div>


