Attached: 1 image
I realized only recently that when in #Logseq you place queries in the right sidebar, the current-page variable refers to the current page in the main view!!
So I created a page called "Current page" and placed there some useful queries, like the one that look for mention of the current page in indexes, to realize a convenient UI to browse polyhierarchies.
Assuming you tag the top of an index as [[index]]:
{{query (and [[index]] <%current page%> (not (page <%current page%>)))}}
{{query (and [[index]] (page <%current page%>))}}
{{query (and [[Note]] <%current page%>)}}
{{query (property author <%current page%>)}}