# Search text with both exact values within double quotes and the other values

**URL:** <https://discuss.elastic.co/t/search-text-with-both-exact-values-within-double-quotes-and-the-other-values/166364>\
**Category:** Elasticsearch\
**Created:** [January 30, 2019, 1:37pm UTC](https://discuss.elastic.co/t/search-text-with-both-exact-values-within-double-quotes-and-the-other-values/166364 "2019-01-30T13:37:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokulprasath\_Narayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gokulprasath_narayan/32/40074_2.png) [@Gokulprasath\_Narayan](https://discuss.elastic.co/u/Gokulprasath_Narayan)\
**Post date:** [January 30, 2019, 1:37pm UTC](https://discuss.elastic.co/t/search-text-with-both-exact-values-within-double-quotes-and-the-other-values/166364/1 "2019-01-30T13:37:27Z")

</div>

my search criteria should full-fill the string having exact values(inside double quotes) and the rest other string. please suggest.

example search text: "what is the capital for /"united states of america/""

output: it should contain the exact text united states of america and the capital

what tokenizer suits better for above solution?

i have used pattern tokenizer, but the split is like 1) "what is the capital for" 2) "united states of america"

but i need is 1) "capital" 2) "united states of america"

---

<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:** [February 27, 2019, 1:37pm UTC](https://discuss.elastic.co/t/search-text-with-both-exact-values-within-double-quotes-and-the-other-values/166364/2 "2019-02-27T13:37:30Z")

</div>

Closed on February 27, 2019, 1:37pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
