REQUEST A LIVE DEMO

Search Engine

dragonGlass.SearchEngine

Description:

Represents the definition of a DragonGlass search engine.

Constructor

    
new SearchEngine(config)

Parameters:

Name Type Description
config object
id: string
searchKey: string
appKey: string

Methods

    
getIndexes() - {array}

Returns:

array of indexes


    
getSchemasForAllIndexes() -> {array}

Returns:

array of concatenated schemas across all indexes


    
headers() -> {array}

Returns:

the authorization header constructed from the keys wrapped in an array


    
load() -> {deferred}

Returns:

array of concatenated schemas across all indexes


    
headers() -> {array}

Fires:

event:dg-engine-loaded

Returns:

promise