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: 1 day ago
JSON representation
Easy-to-use search for Meteor with Blaze Components
- Host: GitHub
- URL: https://github.com/matteodem/meteor-easy-search
- Owner: matteodem
- License: mit
- Created: 2013-11-23T12:23:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T14:09:13.000Z (about 1 year ago)
- Last Synced: 2025-01-04T07:24:02.276Z (9 days ago)
- Topics: blaze-components, meteor, meteor-package, search
- Language: JavaScript
- Homepage:
- Size: 1.57 MB
- Stars: 435
- Watchers: 19
- Forks: 68
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-meteor - matteodem:easy-search - Easy-to-use search component with Blaze (+ elasticsearch support). (Packages)
- awesome-meteor - matteodem:easy-search - Easy-to-use search with Blaze Components (+ Elastic Search Support) (Search, sort and paginate)
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 }}
- Name of the player: {{name}}
{{#EasySearch.Each index=playersIndex }}
{{/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
```