Controller searchText: ’’, searchTextDidChange: function() { var searchText = this.get(’searchText’); var filterFunction = Ember.isEmpty(searchText) ? Ember.K : function(record) { return record.get(’title’) .toLowerCase() .match(searchText.toLowerCase()); }; this.set(’model.filterFunction’, filterFunction); }.observes(’searchText’),