From bcbb935ac1e90c21281ba578a637fb1f879dbfe3 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 24 Sep 2023 09:01:34 +0200 Subject: [PATCH] Changed to text index for name --- .../de/twomartens/timetable/bahnApi/model/db/BahnStation.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt index e4d903b..d49257a 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnStation.kt @@ -5,12 +5,13 @@ import org.springframework.data.annotation.CreatedDate import org.springframework.data.annotation.Id import org.springframework.data.annotation.LastModifiedDate import org.springframework.data.mongodb.core.index.Indexed +import org.springframework.data.mongodb.core.index.TextIndexed import org.springframework.data.mongodb.core.mapping.Document import java.time.Instant @Document data class BahnStation( - @Indexed var name: String, + @TextIndexed var name: String, @Indexed(unique = true) var eva: String, var ds100: String, var db: Boolean