# NEST query string same as kibana

**URL:** <https://discuss.elastic.co/t/nest-query-string-same-as-kibana/65420>\
**Category:** Elasticsearch\
**Created:** [November 8, 2016, 11:11pm UTC](https://discuss.elastic.co/t/nest-query-string-same-as-kibana/65420 "2016-11-08T23:11:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [November 8, 2016, 11:11pm UTC](https://discuss.elastic.co/t/nest-query-string-same-as-kibana/65420/1 "2016-11-08T23:11:35Z")

</div>

How can i run same query that i run in kibana search bar per example: "error found && type:log" to search for all documents that contains "error found" and also type of document is log?

Is there any method to just copy the string and run a query like client.Query("error found && type:log")?

---

<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:** [December 6, 2016, 11:11pm UTC](https://discuss.elastic.co/t/nest-query-string-same-as-kibana/65420/2 "2016-12-06T23:11:35Z")

</div>

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