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

Accepted Answer
0 votes

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
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

379 views 0 9
Read article

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