Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collation feature of MongoDB #636

Closed
Tolsee opened this issue Feb 16, 2018 · 4 comments
Closed

Collation feature of MongoDB #636

Tolsee opened this issue Feb 16, 2018 · 4 comments

Comments

@Tolsee
Copy link

Tolsee commented Feb 16, 2018

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
Copy link
Owner

matteodem commented Feb 16, 2018

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

@Tolsee
Copy link
Author

Tolsee commented Feb 16, 2018

@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
Copy link
Owner

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

@matteodem
Copy link
Owner

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

@Tolsee Tolsee closed this as completed Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants