txmongo icon indicating copy to clipboard operation
txmongo copied to clipboard

How to specify a collation in a find query

Open AdrienDS opened this issue 7 years ago • 3 comments

Is it possible to specify a collation on a find / find_one query: ( Ref & PyMongo ) with txmongo ?

That can be used along with a Case Insensitive Index to do a case-insensitive search without regexps

AdrienDS avatar Aug 15 '18 19:08 AdrienDS

Sorry for late answer. Unfortunately txmongo doesn't support collation queries yet. Collation is only permitted in new-style command-based MongoDB protocol while we are still using old-style 2.x one. So it isn't trivial to add collation support, although certainly possible and desired.

IlyaSkriblovsky avatar Aug 27 '18 20:08 IlyaSkriblovsky

Thanks for your response ! Is a support of the new-style planned for any upcoming release ?

AdrienDS avatar Aug 28 '18 04:08 AdrienDS

I would love to see this feature in the next release, but development is going slow recently due to lack of spare time or developers (and because there are no new features required by the company I'm working for). I've marked this issue as feature request, so we can recall it when we find time.

Anyways, your help is welcomed! :)

IlyaSkriblovsky avatar Aug 28 '18 04:08 IlyaSkriblovsky