Multi_match with Wildcard?

This query is working well for me but I wondered if it's possible to use wildcards on the search term?

{
"query": {
"multi_match" : {
"query": "Jones Mein",
"fields": [ "surname", "person_number" ],
"fuzziness": "AUTO"
}
}
}

i.e.

{
"query": {
"multi_match" : {
"query": "Jones Mei*",
"fields": [ "surname", "person_number" ],
"fuzziness": "AUTO"
}
}
}

You can only use wildcards in the following APIs:

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html

OR

https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-regexp-query.html

I suggest you to wrap this in a bool query and use the wildcard Api only in one field.

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