# What is the best way to do wildcards with booleans?

**URL:** <https://discuss.elastic.co/t/what-is-the-best-way-to-do-wildcards-with-booleans/107321>\
**Category:** Elasticsearch\
**Created:** [November 13, 2017, 2:01am UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-do-wildcards-with-booleans/107321 "2017-11-13T02:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrblue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mrblue/32/23268_2.png) [@mrblue](https://discuss.elastic.co/u/mrblue)\
**Post date:** [November 13, 2017, 2:01am UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-do-wildcards-with-booleans/107321/1 "2017-11-13T02:01:20Z")

</div>

Hi everybody,

we are using ES for some time now, and most searches we do are boolean multi match querys. Usually, we search trough 3 or 4 fields with a bool/must/multimatch query.

We then add 0-10 boolean filter (usually bool/must\_not/term/type..).

For our new internal search we need both empty querys (show all) and wildcards querys that look like '_partial\_query_' who will search trough 3-4 fields.

I looked at the wildcard query, but it did not work for me.

Is there a good way to use wildcards with bools ? Performance ist not a big issue, we have very fast hardware, and only search trough 500-10k items at once.

Thx in advance for your feedback!

---

<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 11, 2017, 2:51am UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-do-wildcards-with-booleans/107321/2 "2017-12-11T02:51:19Z")

</div>

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