new MLSearchFactory($q, $location, MLRest, MLQueryBuilder)

Parameters

Name Type Optional Description

$q

Object

 

angular promise service

$location

Object

 

angular location service

MLRest

MLRest

 

low-level ML REST API wrapper (from https://github.com/joemfb/ml-common-ng)

MLQueryBuilder

MLQueryBuilder

 

structured query builder (from https://github.com/joemfb/ml-common-ng)

Method

newContext(options) → MLSearchContext

returns a new instance of MLSearchContext

Parameter

Name Type Optional Description

options

Object

 

(to override MLSearchContext.defaults)

Returns

MLSearchContext