Add a filter parameter to the textSearch method