Meteor package that provides a simple API for implementing a fulltext-search.
meteor add teamgrid:search
TeamSearch.define
uniqueSearchName:
threshold: 3
collections:
posts:
indexFields: ['name']
query:
archived: $ne: true
query: (searchValue, data) ->
_.extend this, authorId: data.authorId
options:
fields:
name: 1
limit: 10
{{#TeamSearch name='uniqueSearchName' searchString=reactiveSearchString}}
{{#each searchItems}}
{{name}}
{{else}}
no results
{{/each}}
{{else}}
loading...
{{/TeamSearch}}