| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 | [[query-dsl-wildcard-query]]=== Wildcard query++++<titleabbrev>Wildcard</titleabbrev>++++Returns documents that contain terms matching a wildcard pattern.A wildcard operator is a placeholder that matches one or more characters. Forexample, the `*` wildcard operator matches zero or more characters. You cancombine wildcard operators with other characters to create a wildcard pattern.[[wildcard-query-ex-request]]==== Example requestThe following search returns documents where the `user.id` field contains a termthat begins with `ki` and ends with `y`. These matching terms can include `kiy`,`kity`, or `kimchy`.[source,console]----GET /_search{  "query": {    "wildcard": {      "user.id": {        "value": "ki*y",        "boost": 1.0,        "rewrite": "constant_score"      }    }  }}----[[wildcard-top-level-params]]==== Top-level parameters for `wildcard``<field>`::(Required, object) Field you wish to search.[[wildcard-query-field-params]]==== Parameters for `<field>``value`::(Required, string) Wildcard pattern for terms you wish to find in the provided`<field>`.+--This parameter supports two wildcard operators:* `?`, which matches any single character* `*`, which can match zero or more characters, including an empty oneWARNING: Avoid beginning patterns with `*` or `?`. This can increasethe iterations needed to find matching terms and slow search performance.--`boost`::(Optional, float) Floating point number used to decrease or increase the<<relevance-scores,relevance scores>> of a query. Defaults to `1.0`.+You can use the `boost` parameter to adjust relevance scores for searchescontaining two or more queries.+Boost values are relative to the default value of `1.0`. A boost value between`0` and `1.0` decreases the relevance score. A value greater than `1.0`increases the relevance score.`rewrite`::(Optional, string) Method used to rewrite the query. For valid values and more information, see the<<query-dsl-multi-term-rewrite, `rewrite` parameter>>.`case_insensitive` added:[7.10.0]::(Optional, Boolean) Allows case insensitive matching of thepattern with the indexed field values when set to true. Default is false which meansthe case sensitivity of matching depends on the underlying field's mapping.[[wildcard-query-notes]]==== Notes===== Allow expensive queriesWildcard queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>is set to false.
 |