Constructs a query selecting all terms greater than
lowerTermbut less than
upperTerm. There must be at least one term and either term may be null, in which case there is no bound on that side, but if there are two terms, both terms must be for the same field.