Problems with Empty Folders and Indexing views

Hello everyone,

I have a question regarding HubShare and optimizations. We had been struggling with performance issues but were able to get them under control. I now wanted to index the views. However, when I index the views, some documents appear in the view that weren't actually searched for. Additionally, we have an issue with empty folders. Empty folders should not be displayed, and they aren't in M-Files, but they do appear for the clients in M-Files. How can I fix this?