Use of collation in mongodb $regex

后端 未结 2 739
無奈伤痛
無奈伤痛 2021-01-06 02:26

Since v3.4 collations are available for find operations, especially as matches for diacritic characters are concerned. While a find query with a definite value ($eq opeartor

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 03:08

    Documentation

    Case insensitive regular expression queries generally cannot use indexes effectively. The $regex implementation is not collation-aware and is unable to utilize case-insensitive indexes.

提交回复
热议问题