Indeks String Mongoose

const schema = new Schema({
  title: {
    type: String,
    required: true,
    unique: true,
    index: 'text'
  }
})
florinrelea