Is it possible to have both index and text index on the same column in MongoDB?
I want to query Question
collection by country code (i.e. "US") and unwind related data in Country
collection by country code as id.
Example code for Spring Data MongoDB / Kotlin:
@Document
data class Question(
@Id val id: String,
@TextIndexed
@Indexed(name = "question_country_code_index")
val countryCode: String
)