matteodem / meteor-easy-search

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

Search over multiple collections with selector on it #481

Closed raisudeen closed 8 years ago

raisudeen commented 8 years ago

Hi, I have below collections with relations to it.

School: | SchoolID | Name |_____ Status

Game: | SchoolID | GameID | Name | Status

Participants: | SchoolID | GameID | StudentID | Name |_____ Status

I want to show "Participants" only if "Status" of "School" and "Game" is "active". Is it possible to filter results or create selector to achieve above criteria? If it is not possible, kindly let me know the alternative ways to achieve it with some code example. Thanks in advance.

matteodem commented 8 years ago

Please check out the docs and leaderboard example, there's most certainly a solution. For example a de-normalized data structure, with Elastic Search or MongoDB, that contains all the necessary searchable / filterable data in the same collection.