Likely, the name of the package should read tracker-gui rather than tracker-ui. No package with the latter name was ever in the Ubuntu repositories.
tracker-gui used to contain graphical applications to interact with the tracker database. It contained a search tool and tracker-preferences. The package tracker-gui was included in the Ubuntu repositories up to version 17.10. It apparently is not anymore maintained, and has been dropped from subsequent Ubuntu versions.
tracker-gui as such is not needed. You typically query tracker through Activities, or through any of the applications that can use (Files in 18.04) or require (Gnome Photo's, Gnome Documents) Tracker. You can to some extent control what is being searched in Gnome Setting - Search. Various settings are not exposed to the user, but can be changed using dconf-editor.