Added "dist" query type