# Search through nest issue

**URL:** <https://discuss.elastic.co/t/search-through-nest-issue/47665>\
**Category:** Elasticsearch\
**Created:** [April 18, 2016, 1:47pm UTC](https://discuss.elastic.co/t/search-through-nest-issue/47665 "2016-04-18T13:47:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabriziodb](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@fabriziodb](https://discuss.elastic.co/u/fabriziodb)\
**Post date:** [April 18, 2016, 1:47pm UTC](https://discuss.elastic.co/t/search-through-nest-issue/47665/1 "2016-04-18T13:47:42Z")

</div>

this query sent by browser returns 1 hit:

[http://x.x.x.x:9200/push\_analizer\_ita/doc/\_search?q=label:](http://x.x.x.x:9200/push_analizer_ita/doc/_search?q=label:)"acconti iva"

{  
"took": 9,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 1,  
"max\_score": 4.103368,  
"hits": [  
{  
"\_index": "push\_analizer\_ita",  
"\_type": "doc",  
"\_id": "12",  
"\_score": 4.103368,  
"\_source": {  
"id": "12",  
"iddocumento": [  
"11689039",  
"16637313",  
"25995473",  
"27108249",  
"27108255",  
"28110739",  
"28262179",  
"28262191"  
],  
"tag": [],  
"label": "acconto Iva",  
"idleaf": "12"  
}  
}  
]  
}  
}

i need to do the same query through nest, i tried this code but it does not compile:

ISearchResponse searchResponse = this.Client.Search  
(x =\> x.Query  
(  
q =\> q.SimpleQueryString("acconti iva")  
)  
);

Client is ElasticClient instance.

Any suggestion?

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:58pm UTC](https://discuss.elastic.co/t/search-through-nest-issue/47665/2 "2017-07-05T22:58:29Z")

</div>


