Publish Instance Ignoring Query | Community
Skip to main content
Level 3
November 7, 2022
Solved

Publish Instance Ignoring Query

  • November 7, 2022
  • 3 replies
  • 919 views

Hi All,

I have an odd one...

We recently migrated from our AEM on prem to AEM cloud and have found a bug I'm just not sure how to fix.

We have a component that is using a query to grab articles to display in a carousel. in the Author it looks fine, matches our on prem.. however, when published the publish instance seems to ignore the tag query that filters the articles that should appear in the component and is just grabbing anything in the root. 

 

No Idea why it behaves this way in publish. Any ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by RooRue

Thanks for the help.

The problem seemed to be due to our tag predicates. refined the query to be stricter. Seems to have done the trick. 

After a bit of QueryBuilder Debuggin found the drama and corrected it. 

Thanks again. 

3 replies

TarunKumar
Community Advisor
Community Advisor
November 7, 2022

Hi @roorue ,

There are few steps to analyse the query whether it's working or not.
1. Run the query in query debug tool and check if you are finding any hit there.
2. Enable DEBUG logs for QueryBuilder to obtain underlying logs.

3. Check for the indexing in the query performance tool.

 

Most probably you should be able to find the cause for this issue.

SantoshSai
Community Advisor
Community Advisor
November 7, 2022
RooRueAuthorAccepted solution
Level 3
November 7, 2022

Thanks for the help.

The problem seemed to be due to our tag predicates. refined the query to be stricter. Seems to have done the trick. 

After a bit of QueryBuilder Debuggin found the drama and corrected it. 

Thanks again.