# Wildcards in Document filters

**URL:** <https://discuss.elastic.co/t/wildcards-in-document-filters/304326>\
**Category:** Elasticsearch\
**Created:** [May 10, 2022, 9:19am UTC](https://discuss.elastic.co/t/wildcards-in-document-filters/304326 "2022-05-10T09:19:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anfo](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Anfo](https://discuss.elastic.co/u/Anfo)\
**Post date:** [May 10, 2022, 9:19am UTC](https://discuss.elastic.co/t/wildcards-in-document-filters/304326/1 "2022-05-10T09:19:40Z")

</div>

Hi  
Everything tells me that simple asterisk should work for a wildcard in a filter, but I'm finding it temperamental. Please see picture below. Sometimes it appears to work, other times ignored.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/3/8/38398b8b3adfcfee0120feeaed8e1fd707e63bf9.png)

Am I merely structuring it incorrectly?

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [May 10, 2022, 12:40pm UTC](https://discuss.elastic.co/t/wildcards-in-document-filters/304326/2 "2022-05-10T12:40:08Z")

</div>

Hi.

Normally I click on "Edit as DSL query" and add my query, as per the attached image.

 ![capture](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b138aac5fccd15b715a2eb6823494c1435c117ff.png)

---

<div class="post-metadata">

**Author:** ![Anfo](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Anfo](https://discuss.elastic.co/u/Anfo)\
**Post date:** [May 11, 2022, 2:39am UTC](https://discuss.elastic.co/t/wildcards-in-document-filters/304326/3 "2022-05-11T02:39:01Z")

</div>

Thank you, that seems to work.

---

<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:** [June 8, 2022, 2:39am UTC](https://discuss.elastic.co/t/wildcards-in-document-filters/304326/4 "2022-06-08T02:39:37Z")

</div>

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