kohni
kohni

Reputation: 23

CouchDB Finnish/Swedish collation view

How can I change a CouchDB view collation to sort skandinavian letters (åäö) after z?

Upvotes: 2

Views: 139

Answers (1)

smathy
smathy

Reputation: 27971

You can't configure it unfortunately. The collation for CouchDB is implemented via the ICU library which does have the facility to provide alternative collations, both from a locale DB and totally custom rules.

Unfortunately CouchDB does not expose any of that, its ucol_open call has a hardcoded "" value for the locale.

As it stands, in order to customize this for your locale, you would need to recompile CouchDB passing a value for that locale parameter to ucol_open, more info on the format etc of that is available here.

Upvotes: 1

Related Questions