nir/search: Use larger type to hold linearized index