Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fulltext not working? #80

Open
dnish opened this issue Mar 8, 2016 · 0 comments
Open

Fulltext not working? #80

dnish opened this issue Mar 8, 2016 · 0 comments
Labels

Comments

@dnish
Copy link

dnish commented Mar 8, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants