| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | [[query-dsl-wildcard-query]]=== Wildcard QueryMatches documents that have fields matching a wildcard expression (*notanalyzed*). Supported wildcards are `*`, which matches any charactersequence (including the empty one), and `?`, which matches any singlecharacter. Note that this query can be slow, as it needs to iterate over manyterms. In order to prevent extremely slow wildcard queries, a wildcardterm should not start with one of the wildcards `*` or `?`. The wildcardquery maps to Lucene `WildcardQuery`.[source,js]--------------------------------------------------GET /_search{    "query": {        "wildcard" : { "user" : "ki*y" }    }}--------------------------------------------------// CONSOLEA boost can also be associated with the query:[source,js]--------------------------------------------------GET /_search{    "query": {        "wildcard" : { "user" : { "value" : "ki*y", "boost" : 2.0 } }    }}--------------------------------------------------// CONSOLEOr :[source,js]--------------------------------------------------GET /_search{    "query": {        "wildcard" : { "user" : { "wildcard" : "ki*y", "boost" : 2.0 } }    }}--------------------------------------------------// CONSOLEThis multi term query allows to control how it gets rewritten using the<<query-dsl-multi-term-rewrite,rewrite>>parameter.
 |