XWIKI-8751: Solr indexing should not care about the current admin's hidden documents preference
- Using the QueryManager instead of com.xpn.XWiki to get spaces of a wiki and documents of a space.