     results = new arcs.collections.ResultSet @search.getLast()
     @_render results: results.toJSON(), true
 	
+  addFacet: (e) ->
+    e.preventDefault() 
+    @search.vs.searchBox.addFacet(e.target.text,'',10)	
+
   search: (e) ->
     e.preventDefault()
-	
-    #query = e.target.text+",like,"+$("#search-box").val()
+    
     query = [e.target.text, "like", $(".VS-search-inner").val()]
-    console.log(query)
+    console.log(@search.vs.searchBox)
     @search.run query,
       order: 'type'
       direction: @options.sortDir

    'click .sort-btn'          : 'setSort'
    'click .dir-btn'           : 'setSortDir'
    'click .search-page-btn'   : 'setPage'
    'click .search-type'       : 'search'

  ### More involved setups run by the initialize method ###


    # <ctrl>-a to select all
    arcs.keys.map @,
      'ctrl+a': @selectAll
      'enter': @search
      '?': @showHotkeys
      t: @scrollTop

