Changed to text index for name

This commit is contained in:
2023-09-24 09:01:34 +02:00
parent cae30f430d
commit bcbb935ac1
@@ -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