# Question about Wildcard Query

**URL:** <https://discuss.elastic.co/t/question-about-wildcard-query/165327>\
**Category:** Elasticsearch\
**Created:** [January 23, 2019, 4:07am UTC](https://discuss.elastic.co/t/question-about-wildcard-query/165327 "2019-01-23T04:07:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Sanchez\_Sanche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oscar_sanchez_sanche/32/36678_2.png) [@Oscar\_Sanchez\_Sanche](https://discuss.elastic.co/u/Oscar_Sanchez_Sanche)\
**Post date:** [January 23, 2019, 4:07am UTC](https://discuss.elastic.co/t/question-about-wildcard-query/165327/1 "2019-01-23T04:07:02Z")

</div>

Hello!

There's a question I have with regards of using a wildcard query.

So I have a set of values on a field "meta.test\_key.value"

Let's say I have these values:

1.- Alice  
2.- alICe  
3.- AlIcE  
4.- Aliceee

Now I do my wildcard query:

```
{
    "query": {
        "wildcard": {
            "meta.test_key.value": "alice*"
        }
    }
}

```

And I only get 1 result ( Aliceee ).

This "makes" sense to me as the wildcard is searching for anything that matches alice + something more . However, I would like to have results for anything that matches "alice" and "alice" + something more.

For this, I found the regexp query does the job. My question is: Is there a way to make this query with a wildcard query?

Thanks for your time and hope you have a good day 🙂

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [January 23, 2019, 10:05am UTC](https://discuss.elastic.co/t/question-about-wildcard-query/165327/2 "2019-01-23T10:05:54Z")

</div>

Hey @Oscar_Sanchez_Sanche,

try it as "al\*e"

regards  
Shrikant

---

<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:** [February 20, 2019, 10:06am UTC](https://discuss.elastic.co/t/question-about-wildcard-query/165327/3 "2019-02-20T10:06:01Z")

</div>

Closed on February 20, 2019, 10:06am UTC

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