# Wildcard behavior

**URL:** <https://discuss.elastic.co/t/wildcard-behavior/87820>\
**Category:** Elasticsearch\
**Created:** [May 31, 2017, 10:57pm UTC](https://discuss.elastic.co/t/wildcard-behavior/87820 "2017-05-31T22:57:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurav/32/26497_2.png) [@saurav](https://discuss.elastic.co/u/saurav)\
**Post date:** [May 31, 2017, 10:57pm UTC](https://discuss.elastic.co/t/wildcard-behavior/87820/1 "2017-05-31T22:57:24Z")

</div>

What is the expected behavior if you query just the wildcard ("\*") on all fields?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [June 1, 2017, 6:49pm UTC](https://discuss.elastic.co/t/wildcard-behavior/87820/2 "2017-06-01T18:49:17Z")

</div>

I'm not entirely sure I follow, can you paste an example query?

If you do a wildcard of `*` across all fields, it's essentially a match\_all query and you'll match everything.

---

<div class="post-metadata">

**Author:** ![saurav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurav/32/26497_2.png) [@saurav](https://discuss.elastic.co/u/saurav)\
**Post date:** [June 9, 2017, 3:45pm UTC](https://discuss.elastic.co/t/wildcard-behavior/87820/3 "2017-06-09T15:45:04Z")

</div>

Hey, thanks for the reply.

In my search box, i'm just searching for '\*' and that gives back a strange number of results, not the total number however.

---

<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 7, 2017, 3:45pm UTC](https://discuss.elastic.co/t/wildcard-behavior/87820/4 "2017-07-07T15:45:28Z")

</div>

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