# Nested Field Search in QueryString

**URL:** <https://discuss.elastic.co/t/nested-field-search-in-querystring/58056>\
**Category:** Elasticsearch\
**Created:** [August 15, 2016, 6:38pm UTC](https://discuss.elastic.co/t/nested-field-search-in-querystring/58056 "2016-08-15T18:38:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwetaskatdare](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@shwetaskatdare](https://discuss.elastic.co/u/shwetaskatdare)\
**Post date:** [August 15, 2016, 6:38pm UTC](https://discuss.elastic.co/t/nested-field-search-in-querystring/58056/1 "2016-08-15T18:38:18Z")

</div>

Hi all,

I upgraded Elasticsearch version from 1.7.5 to 2.3.4 recently. I am trying to find a correct way to generalize QueryString search for Nested fields. The following NEST client method works fine in 1.7.5  
`string queryString = "Author: abc AND Title: xyz"`;  
`Nest.Query<T>.QueryString(q => q.Query(queryString));`

Consider mapping as  
{  
Author: "abc",  
Book: { Title: "xyz" }  
}

In 2.3.4, the above method call doesn't return desired results when you don't specify the path (here it would be _Book.Title_ )

Is there a way I could use the above method without having to specify the path of the nested field ? As I am using generic types, it would be expensive to look up parent field names to specify the path

Appreciate any feedback

Thanks

---

<div class="post-metadata">

**Author:** ![shwetaskatdare](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@shwetaskatdare](https://discuss.elastic.co/u/shwetaskatdare)\
**Post date:** [August 16, 2016, 4:02pm UTC](https://discuss.elastic.co/t/nested-field-search-in-querystring/58056/2 "2016-08-16T16:02:36Z")

</div>

Anyone handling querystring for nested fields without specifying path ?

---

<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:27pm UTC](https://discuss.elastic.co/t/nested-field-search-in-querystring/58056/3 "2017-07-05T22:27:31Z")

</div>


