Automatically remove search in DB when changing types

It would be helpful if when the search bar in the DB is not empty and the data type is changed that the search bar becomes empty.

This will make it so that when searching a particular type with a term that would find results is not deleted by the developer and the developer changes the data type to view the results will not come up empty if the search term doesn’t return results for that data type.

For example if I am searching colors and I type ‘red’ and then I change my data type to vegetables which none would have the name of red, the results would show all vegetables. Currently when the search bar keeps the same term and I display vegetables I get no results.

This often happens to me and it is frustrating because it causes me to assume the data is missing until I remember that I need to manually delete the search term from the search bar.