Ferret Fulltext search: Do not query data of uninstalled apps
Summary:
When using the default global fulltext search (many of our users do unfortunately), Phorge makes every available SearchEngine run a query. This also includes queries in database of uninstalled applications. This may decrease performance, plus any potential results are not listed anyway as the corresponding application to render them is not available. Thus drop out early in that case.
Closes T16123
Test Plan:
1. Temporarily uninstall some applications via http://phorge.localhost/applications/ (for example http://phorge.localhost/applications/view/PhabricatorFundApplication/ after running `./bin/config set phabricator.show-prototypes true`)
2. Enable Darkconsole via http://phorge.localhost/config/edit/darkconsole.always-on/
3. Go to http://phorge.localhost/search/query/advanced/
4. Enter random search terms in the `Query` field, hit the `Search` button
5. Look at the resulting SQL queries in DarkConsole by searching for `connect` and `query` entries, do not see `localhost:phabricator_uninstalledapp` and `SELECT ngram FROM uninstalledapp_somesuffix_fngrams_common` entries anymore
Reviewers: O1 Blessed Committers, mainframe98
Reviewed By: O1 Blessed Committers, mainframe98
Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T16123
Differential Revision: https://we.phorge.it/D26111