# How to use “wildcard” with a multistring query in kibana Discover tab?

**URL:** <https://discuss.elastic.co/t/how-to-use-wildcard-with-a-multistring-query-in-kibana-discover-tab/152022>\
**Category:** Kibana\
**Created:** [October 11, 2018, 9:31am UTC](https://discuss.elastic.co/t/how-to-use-wildcard-with-a-multistring-query-in-kibana-discover-tab/152022 "2018-10-11T09:31:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaheed\_Sarwar](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Shaheed\_Sarwar](https://discuss.elastic.co/u/Shaheed_Sarwar)\
**Post date:** [October 11, 2018, 9:31am UTC](https://discuss.elastic.co/t/how-to-use-wildcard-with-a-multistring-query-in-kibana-discover-tab/152022/1 "2018-10-11T09:31:54Z")

</div>

I am trying to run the following query for an index along with wildcard:

{"wildcard:"{"terminalId":70}} AND tranSactionResponseCode:1

The above query throws and error: Failed to parse query.......

but when I run only the above query as: {"wildcard:"{"terminalId":70}} or when I run only the AND condition: tranSactionResponseCode:1 it runs successfully. Please help me in figuring out how do I use both the conditions in one single query.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [October 11, 2018, 10:26am UTC](https://discuss.elastic.co/t/how-to-use-wildcard-with-a-multistring-query-in-kibana-discover-tab/152022/2 "2018-10-11T10:26:59Z")

</div>

I think you should be able to use the first one without wildcard as the Query bar already uses wildcards, so a `terminalId:70 AND tranSactionResponseCode:1` query should be good.

---

<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:** [November 8, 2018, 10:26am UTC](https://discuss.elastic.co/t/how-to-use-wildcard-with-a-multistring-query-in-kibana-discover-tab/152022/3 "2018-11-08T10:26:59Z")

</div>

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