matteodem / meteor-easy-search

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

Old documents are returned when new document is inserted #621

Open ericdepotter opened 7 years ago

ericdepotter commented 7 years ago

When documents are changed after the search has initialized, these changes are lost when a new document is inserted.

I believe this is caused by https://github.com/matteodem/meteor-easy-search/blob/master/packages/easysearch:core/lib/core/search-collection.js#L236 which publishes the documents as they were at the moment when the search was initialized.