Distance criteria for search