range

fun range(from: Key?, to: Key?): Query

The same query restricted to keys in [from, to], both bounds inclusive and both optional.

A key range is pushed into both halves of the plan — as an ordinal range on the index side, because ordinals ascend with keys, and as the cursor's own bounds on the scan side. It is not a filter applied to the answer.