Skip to content

Easy-to-use search with Blaze Components (+ Elastic Search Support)

License

Notifications You must be signed in to change notification settings

TPXP/meteor-easy-search

 
 

Repository files navigation

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

About

Easy-to-use search with Blaze Components (+ Elastic Search Support)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.5%
  • HTML 5.2%
  • CSS 1.3%