Generalize ranges and support search by value on virtual vectors