2 / 2
Aug 2024

Hello,

we are using Atlas Search for sorting data. Doing these sorts in MongoDB is no option since we have a combination of multiple filters and multiple sort strategies which is not possible with regular MongoDB indexes.

When sorting by a text field (indexed as type “token” with normalizer “lowercase”), words with a diacritic at the start are at the end of the list. I wonder if there is an normalizer like asciiFolding avaliable for type token. Or do you know another option?

Index definition for sorting:

type: 'token', normalizer: 'lowercase',

Kind Regards,
Lukas

Hi there,

This isn’t supported in Atlas Search today. I recommend opening a feedback item in our portal so we can track this request! In the meantime, you could consider normalizer the data in your app code before storing it in MongoDB. You might also be interested in this feature that we have in progress to allow users to transform data prior to indexing, which might reduce the logic needed at the application level.