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