title: filter/search function in meteor
body: <p>I'm looking to implement a search/filter function. It will use a drop down bar as its inputs (so we the user chooses from a set of options). </p>
  
  <p>How my system works now is this: There is a Meteor.users collection, and an Instruments collection. Basically, each user has a list of instruments he plays (for example, Bob plays piano and violin, Alice plays the piano and the flute). In this case, there are 4 objects in the Instruments collection: </p>
  
  <p>1) type: Piano
     owner: (bob's ID)</p>
  
  <p>2) type: Violin
     owner: (bob's ID)</p>
  
  <p>3) type: Piano
     owner: (Alice's ID)</p>
  
  <p>4) type: Flute
     owner: (Alice's ID)</p>
  
  <p>So what I'm trying to do is, when I choose "piano" on my drop down list, and then click search, I want it to display Bob and Alice's profiles. I guess this should be done using Meteor's publish feature, but just not sure how to do it (I'm a beginner here). </p>
  
  <p>For example, if how do I tell that specific publication to run when I hit search? I see examples of people setting publish rules to only publish the subset they are searching for, but how do we tell it when to happen? Do we use another template for that so that when we click "search", the URL path changes and thus a different template?</p>
  
  <p>To be clear, my question is just how should I go about doing this. Thanks!</p>