matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
436 stars 68 forks source link

Collation feature of MongoDB #636

Closed Tolsee closed 6 years ago

Tolsee commented 6 years ago

MongoDB has released the collation feature from 3.4 and meteor also supports it(with rawCollection). But, I cannot find a way to use collation in easy-search(Mongo Engine).

matteodem commented 6 years ago

This is related to #630. I'll try to add docs on how to use collation with easy-search soon.

Tolsee commented 6 years ago

@matteodem Ok, but that does not explain how to use those feature in easy-search right? If I am right then that only shows how we can use aggregation in rawCollection. I am confused.

matteodem commented 6 years ago

yes. the only other thing that's needed in the code example is the custom selector method.

matteodem commented 6 years ago

Actually I have a working example here https://github.com/matteodem/sounds-social/blob/master/code/api/imports/data/search/SoundSearchIndex.js

Not hugely performant as it does 2 queries but I think it's a doable solution for most apps