Field wildcards

I can use a simple template query, for example:

"wildcard" : { "user" : "ki*y" } 

but if I want to use a wildcard in a field, then what? How shoud looks correct for this:

 "wildcard" : { "base/*" : "value" } 
+6
source share
1 answer

You can use query_string , which allows you to use both field character masks and query character masks.

Something around these lines:

 { "query": { "query_string": { "fields": [ "base*" ], "query": "ki*y" } } } 
+16
source

All Articles