Thank you for answers!
Our own system is on-premise and the SQL query is working just fine.
But our clients have also cloud versions in use and it would be great to have an in-built way to get this information.
@Phil Robson:
What is the maximum amount of documents shown in the search results?
Does this need to be configured individually for each system?
Greetings from Germany,
Ronald