meteor-publish-composite icon indicating copy to clipboard operation
meteor-publish-composite copied to clipboard

Fulltext not working?

Open dnish opened this issue 8 years ago • 0 comments

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?

dnish avatar Mar 08 '16 12:03 dnish