Easy Search is a simple and flexible solution for adding search functionality to your Meteor App. Use the Blaze Components + Javascript API to get started.
// On Client and Server
let Players = new Mongo.Collection('players'),
PlayersIndex = new EasySearch.Index({
collection: Players,
fields: ['name'],
engine: new EasySearch.MongoDB()
});
// On Client
Template.searchBox.helpers({
playersIndex: () => PlayersIndex
});
<template name="searchBox">
{{> EasySearch.Input index=playersIndex }}
<ul>
{{#EasySearch.Each index=playersIndex }}
<li>Name of the player: {{name}}</li>
{{/EasySearch.Each}}
</ul>
</template>
Check out the searchable leaderboard example or have a look at the Documentation for more information.
cd /path/to/project
meteor add easy:search