Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

How can I search multiple fields from the same collection? #144

Open rpalagiri-dm opened 7 years ago

rpalagiri-dm commented 7 years ago

Attempted to do it this way but it did not work

settings: function() {
        return {
            position: 'bottom',
            limit: 5,
            rules: [
                 {
                     collection: Models,
                     field: 'name',
                     matchAll: true,
                     template: Template.standardLegends,
                },
                {
                    collection: Models,
                    field: 'createdBy',
                    matchAll: true,
                    template: Template.standardLegendsOwner,
                },
            ],
        };
    },

However this doesn't work. Is there any way to accomplish this?