Easy-to-use search for Meteor with Blaze Components
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages Respect noDocumentsOnEmpty for autosuggest, fixes #566 Jun 23, 2017
scripts
.codeclimate.yml allow comma dangle Apr 26, 2017
.coveralls.yml Added coveralls configuration Apr 8, 2015
.eslintignore add eslintrc + codeclimate config Apr 26, 2017
.eslintrc.yml add eslintrc + codeclimate config Apr 26, 2017
.gitignore Add import / export statements to core Nov 4, 2016
.travis.yml run both pkg in one command Apr 19, 2017
LICENSE Update LICENSE for 2018 Jan 13, 2018
README.md Update docs Nov 4, 2016
UPGRADE-2.0.md
inch.json Add inch CI config Feb 17, 2018
package.json chore: Added npm package.json to project Feb 11, 2016

README.md

Easy Search Build Status

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.

import { Index, MinimongoEngine } from 'meteor/easy:search'

// On Client and Server
const Players = new Mongo.Collection('players')
const PlayersIndex = new Index({
  collection: Players,
  fields: ['name'],
  engine: new MinimongoEngine(),
})
// 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 current documentation (v1 docs) for more information.

How to install

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