mdk55 / Meteor-easy-search-repo

Repo with minor edits to packaging minimongo -- todo // paginification styling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

** Modified version for local use -- paginification still styled like a donkey's ass and even harder to understand how to customize ?? {{text}} or {{content}} with page class... If you find a work about post it in issues.

*** can conflict with cfs.collections if you don't have all your session, null variables aligned.

Easy Search Commitizen friendly

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.

// On Client and Server
const Players = new Mongo.Collection('players'),
  PlayersIndex = new EasySearch.Index({
    collection: Players,
    fields: ['name'],
    engine: new EasySearch.Minimongo()
  });
// 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.

About

Repo with minor edits to packaging minimongo -- todo // paginification styling

License:MIT License


Languages

Language:JavaScript 98.0%Language:HTML 2.0%