 
   initAlgolia: ->
 
-    { appId } = globals.config.algolia
+    { appId } = globals.config.algolia ? {}
+
+    unless appId
+      kd.warn 'Algolia search is disabled because of missing configuration'
+      return @ready = yes
 
     @ready = no
 

    new Promise (resolve, reject) =>

      return reject new Error 'Search not ready yet'  unless @ready

      return reject new Error 'Illegal input'  if seed is ''

      index = @getIndex "#{ indexName }#{ globals.config.algolia.indexSuffix }"


    { showCurrentUser } = opts
    delete opts.showCurrentUser

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

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