# Raw Query in Nest C#

**URL:** <https://discuss.elastic.co/t/raw-query-in-nest-c/239383>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [July 1, 2020, 12:19am UTC](https://discuss.elastic.co/t/raw-query-in-nest-c/239383 "2020-07-01T00:19:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh\_balasubramani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramesh_balasubramani/32/53173_2.png) [@Ramesh\_balasubramani](https://discuss.elastic.co/u/Ramesh_balasubramani)\
**Post date:** [July 1, 2020, 12:19am UTC](https://discuss.elastic.co/t/raw-query-in-nest-c/239383/1 "2020-07-01T00:19:36Z")

</div>

```
string query = @"
	{
		""size"" : 0,
		""aggs"" : {
			""words"" : {
				""terms"" : { 
					""field"" : ""bodyContent"" ,
					""size"" : 80,
					""exclude"" : [""is"",""an""]
				}
			}
		}
	}";

	client.LowLevel.Search<string>(query);

```

above line getting error.

Please need your help  
Thanks

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [July 2, 2020, 8:44pm UTC](https://discuss.elastic.co/t/raw-query-in-nest-c/239383/2 "2020-07-02T20:44:20Z")

</div>

What's the error? The `string` generic parameter should be `StringResponse` or a type that implements `IElasticsearchResponse`

---

<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 30, 2020, 8:44pm UTC](https://discuss.elastic.co/t/raw-query-in-nest-c/239383/3 "2020-07-30T20:44:28Z")

</div>

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