Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/matteodem/meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
https://github.com/matteodem/meteor-easy-search

blaze-components meteor meteor-package search

Last synced: about 2 months ago
JSON representation

Easy-to-use search for Meteor with Blaze Components

Lists

README

        

Easy Search [![Build Status](https://travis-ci.org/matteodem/meteor-easy-search.svg?branch=master)](https://travis-ci.org/matteodem/meteor-easy-search) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/matteodemicheli?utm_source=github&utm_medium=button&utm_term=matteodemicheli&utm_campaign=github)
=====================

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](http://matteodem.github.io/meteor-easy-search/getting-started).

```javascript
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(),
})
```

```javascript
// On Client
Template.searchBox.helpers({
playersIndex: () => PlayersIndex,
});
```

```html

{{> EasySearch.Input index=playersIndex }}


    {{#EasySearch.Each index=playersIndex }}
  • Name of the player: {{name}}

  • {{/EasySearch.Each}}

```

Check out the [searchable leaderboard example](https://github.com/matteodem/easy-search-leaderboard) or have a look at the [current documentation](http://matteodem.github.io/meteor-easy-search/) ([v1 docs](https://github.com/matteodem/meteor-easy-search/tree/gh-pages/_v1docs)) for more information.

## How to install

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