       metadataValueIds: metadataValueIds
       queries: queries)
 
+    @get('store').commit()
+
     @pushObject(search)
App.CwbSearchesController = Em.ArrayController.extend

  needs: 'corpus'



  corpus: null
  corpusBinding: 'controllers.corpus.content'

  # Action handler
  search: -> @createCwbSearch()

  createCwbSearch: ->
    metadataValueIds = {}
