Question about Wildcard Query

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 :slight_smile:

Hey @Oscar_Sanchez_Sanche,

try it as "al*e"

regards
Shrikant

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