Constant Score Query

edit

See Constant Score Query

QueryBuilder qb = constantScoreQuery(
        termFilter("name","kimchy")     
    )
    .boost(2.0f);                       

you can use a filter

filter score

QueryBuilder qb = constantScoreQuery(
        termQuery("name","kimchy")      
    )
    .boost(2.0f);                       

you can use a query

query score