working on getFilters function in search