Reputation: 309
I can use simple wildcard query like this:
"wildcard" : { "user" : "ki*y" }
but if i want to use wildcard in field, then what? How shoud look valid query for this:
"wildcard" : { "base/*" : "value" }
Upvotes: 16
Views: 21052
Reputation: 52368
You can use query_string which allows both field names wildcards and query text wildcards.
Something around these lines:
{
"query": {
"query_string": {
"fields": [
"base*"
],
"query": "ki*y"
}
}
}
Upvotes: 37