Range Query

edit

See Range Query

QueryBuilder qb = rangeQuery("price")   
    .from(5)                            
    .to(10)                             
    .includeLower(true)                 
    .includeUpper(false);               

field

from

to

include lower value means that from is gt when false or gte when true

include upper value means that to is lt when false or lte when true