PageTreeSearch Macro finds pages not under the root page

Patricia Wiebe
Contributor
June 13, 2011

We have a pagetreesearch macro defined on a root page. We have a bunch of other pages defined under that page. One page was moved from being under that page to another location on the heirarchy. When we run the search the page that is no longer under the root page is found.

Do we have a problem with the definition? This is the entire page definition:

\\
\\
|| Search Gastrointestinal and Immune | {pagetreesearch} ||
\\

Or - is there a residual link left over from when that page was once under the root page? Is there something we can do so this page is no longer found?

2 answers

1 accepted

0 votes
Answer accepted
Emily Watford August 23, 2011

We discovered this was a user issue. She was using the reorder pages link at the bottom of the page instead of actually moving the page. So the child pages were still referring to their original parent page.

4 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 13, 2011

The Pagetree Search Macro docs suggest that if the rootPage macro parameter is not defined the root page is the current page.

You may have a content indexing problem. The moved page may be stuck in the indexing queue so the result appears from the original place in the hierarchy.

Try browsing to:

Confluence Admin | Content Indexing

Check the Queue Contents tab and if theres a problem, rebuild the search index. This may take some time on a large Confluence instance.

Patricia Wiebe
Contributor
June 15, 2011
Thank you for the response. We tried re-indexing and it made no difference. I am not sure if something went wrong when it was moved to be under the other page, but, we ended up deleting and recreating the page, and now the page tree search doesn't find it in the wrong place anymore. This seemed to be an isolated incident, so hopefully we won't see the problem again.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events