[[java-query-dsl-constant-score-query]]
==== Constant Score Query

See {ref}/query-dsl-constant-score-query.html[Constant Score Query]

[source,java]
--------------------------------------------------
QueryBuilder qb = constantScoreQuery(
        termQuery("name","kimchy")      <1>
    )
    .boost(2.0f);                       <2>
--------------------------------------------------
<1> your query
<2> query score
