Already exists in some way: https://techbase.kde.org/KDE_PIM/Akonadi
Store your home directory remotely, have a remote MariaDB/PostgreSQL holding the index and it does exactly what you describe.
However, that is not the standard configuration of course.