     new Promise (resolve, reject) =>
 
       return reject new Error 'Search not ready yet'  unless @ready
-
+      return reject new Error 'Algolia search is disabled'  unless @algolia
       return reject new Error 'Illegal input'  if seed is ''
 
       index = @getIndex "#{ indexName }#{ globals.config.algolia.indexSuffix }"


  initAlgolia: ->

    { appId } = globals.config.algolia

    @ready = no



    { showCurrentUser } = opts
    delete opts.showCurrentUser

    return @searchAccountsMongo seed, { showCurrentUser }  if @ready and not @algolia

    @search 'accounts', seed, opts
      .then (data) ->
