meteor-publish-composite
meteor-publish-composite copied to clipboard
Fulltext not working?
Meteor.publishComposite("search", function(value) {
return {
find: function() {
return Questions.find({$text: {$search: value}}, {
fields: {
score: {$meta: "textScore"}
},
sort: {
score: {$meta: "textScore"}
},
limit: 30
}, {transform: null});
}
}
});
This works fine with normal Meteor.publish method, but doesn't work with publishComposite. I need to publish also some user information. Is there any workaround for this?