1
![Stack Overflow](https://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
I am using backbone filters for search.
Below is my code in collection.
search : function(data){
var pattern = new RegExp(data,"gi");
return (this.filter(function(model) {
console.log("found match in "+ (model.get("name")).match(pattern));
return pattern.test(model.get("...