Skip to content

Latest commit

 

History

History
executable file
·
35 lines (28 loc) · 1.27 KB

README.md

File metadata and controls

executable file
·
35 lines (28 loc) · 1.27 KB

Easy Search Build Status

Easy Search is a simple and flexible solution for adding Search Components to your Meteor App. Use the Blaze Components + Javascript API to get started. Since v1.0 it uses MongoDB for searching by default, but if you want to go for a mature search engine you can use Elastic Search.

// On Client and Server
Players = new Meteor.Collection('players');
// name is the field of the documents to search over
Players.initEasySearch('name');
<template name="searchBox">
    {{> esInput index="players" placeholder="Search..." }}

    <ul>
        {{#esEach index="players"}}
            <li>Name of the player: {{name}}</li>
        {{/esEach}}
    </ul>
</template>

Check out the searchable leaderboard example or have a look at the Documentation for more information.

How to install

cd /path/to/project
meteor add matteodem:easy-search