Auto suggestion in search


#1

Hi

I have a list of numbers which doesnt change that often and I need that list of numbers to be available in my search for auto suggestion. There are multiple packages I could see but not really sure which one to use. Also I dont understand the difference between server side and client side auto suggest feature. I am assuming that i need client side but not 100% sure. Pls help!!


#2

Hi
I have used https://github.com/sergeyt/meteor-typeahead/ but the below doesnt return anything

Template.demo.helpers({
nba: function() {
return Nba.find().fetch().map(function(it){ return it.name; });
}

If I use the same fetch statement in serer side it returns the collection data.

Pls help


#3

then you’ve got yourself a publications / subscriptions issue.


#4

yes thnaks. i had auto publish disabled.