Function withFilteredSearchState

Overwrite the entire state with values from the passed Query stack.