| 123456789101112131415161718192021222324252627282930313233343536373839 | [[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 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]--------------------------------------------------{    "wildcard" : { "user" : "ki*y" }}--------------------------------------------------A boost can also be associated with the query:[source,js]--------------------------------------------------{    "wildcard" : { "user" : { "value" : "ki*y", "boost" : 2.0 } }}--------------------------------------------------Or :[source,js]--------------------------------------------------{    "wildcard" : { "user" : { "wildcard" : "ki*y", "boost" : 2.0 } }}--------------------------------------------------This multi term query allows to control how it gets rewritten using the<<query-dsl-multi-term-rewrite,rewrite>>parameter.
 |