How to do a Case Insensitive search on Azure DocumentDb?

前端 未结 3 876
盖世英雄少女心
盖世英雄少女心 2020-12-10 11:15

is it possible to perform a case insensitive search on DocumnetDb?

Let\'s say I have a record with \'name\' key and value as \"Timbaktu\"

This will work:

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 11:40

    Cosmos recently added a case-insensitive option for string functions:

    You now have an option to make these string comparisons case-insensitive: Contains, EndsWith, StringEquals, and StartsWith. and Significant performance improvements have been realized for these string system functions. Each of these four string system functions now benefit from an index and will therefore have much lower latency and request unit (RU) consumption.

    Announcement

提交回复
热议问题