matteodem / meteor-easy-search

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

Minimongo isSearching won't work #480

Closed ritchieng closed 7 years ago

ritchieng commented 8 years ago

In the documentation you used

ProfilesIndex = new EasySearch.Index({
    collection: Profiles,
    fields: ['title'],
    engine: new EasySearch.Minimongo()
});

In the leaderboard example you used

ProfilesIndex = new EasySearch.Index({
    collection: Profiles,
    fields: ['title'],
    engine: new EasySearch.MongoDB()
});

If we were to follow the former, ifSearching would not work. The later would work if you use MongoDB. Any idea why?

matteodem commented 8 years ago

I just had a look again in the core library and I think this is simply because all the data is already available on the client and it loads it directly. I'll keep this open and have a closer look soon