API Reference

Core

Index

import { Index } from 'meteor/easysearch:core'

new Index(configuration)

Constructor for creating an index.

Configuration

index.search(searchDefinition, [options])

Search the index with the given search definition.

searchDefinition

A search string (or object for mongo based engines) that defines what to search for.

options

Components

Index

index.getComponentDict([componentName])

Get a component dictionary that is a ReactiveDict used for searching by the EasySearch Components.

componentName

Name of the component as a string

index.getComponentMethods([componentName])

Returns an object of convenient methods for search that the EasySearch Components also use.

componentName

Name of the component as a string