PageTreeSearch Macro finds pages not under the root page

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

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 Simpson Community Champion Jun 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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

464 views 19 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you