From 512f31e5da2abe50d61c728c43da5ab74be1e974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=BD=87?= <34333488+knightdreams6@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:41:41 +0800 Subject: [PATCH] Update indexes.adoc --- .../modules/ROOT/pages/redis/redis-repositories/indexes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc b/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc index 76dd49f510..228f8e92f4 100644 --- a/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc +++ b/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc @@ -157,7 +157,7 @@ rand.setAddress(new Address(new Point(13.361389D, 38.115556D))); repository.save(rand); <3> -repository.findByAddressLocationNear(new Point(15D, 37D), new Distance(200)); <4> +repository.findByAddressLocationNear(new Point(15D, 37D), new Distance(200, Metrics.KILOMETERS)); <4> ---- <1> Query method declaration on a nested property, using `Point` and `Distance`.