api updates for new distance functors at search time