| 123456789101112131415161718192021222324252627282930313233 | [[query-dsl-prefix-query]]=== Prefix QueryMatches documents that have fields containing terms with a specifiedprefix (*not analyzed*). The prefix query maps to Lucene `PrefixQuery`.The following matches documents where the user field contains a termthat starts with `ki`:[source,js]--------------------------------------------------GET /_search{ "query": {    "prefix" : { "user" : "ki" }  }}--------------------------------------------------// CONSOLEA boost can also be associated with the query:[source,js]--------------------------------------------------GET /_search{ "query": {    "prefix" : { "user" :  { "value" : "ki", "boost" : 2.0 } }  }}--------------------------------------------------// CONSOLEThis multi term query allows you to control how it gets rewritten using the<<query-dsl-multi-term-rewrite,rewrite>>parameter.
 |