Many thanks for your response, but it doesn’t seem to work for me with the Sandbox.
So if I modify Main.SolrSearchConfig to include
'filterQuery': [
'-space_exact:XWiki'
]
then I can see that results from the XWiki space (such as user’s profiles) are excluded.
However, this does not work for the Sandbox. How is the Sandbox space different from, say, the XWiki space in this regard?
I did a search for “test” without it and I got 4 results from Sandbox. I did the same search with it and I got no results.
Note that the 'hidden:false' is needed because if you specify the filter query in SolrSearchConfig then you are overwriting the default filter query, which has 'hidden:false'. So you want to keep it.