If you are getting the error code -2147089917 while trying to uninstall managed solution and the message reads “[entity] did not have a valid Quickfind query”, verify that the entity is not in the list of entities enabled for multi-entity quick search: