Just thought I'd mention a weird quirk on trying to read search filters, I haven't found a way to read the values property of a search filter and there is no method defined for this.
I can see the values array in the debugger but when I try to read the property it is undefined.