I have a Datatable where the data is retrieved using AJAX. I then have two search functions that filter the data. The search functions work fine once working with unfiltered
As said by davidkonrad
$.fn.dataTable.ext.search.pop()
worked for me. I just added it to the top of each method in order to clear the filter before applying a new one.