Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Query builder is not working with nodename predicate

Avatar

Level 2

Hi Team,

I have written a code using query builder api where i am using nodename as a predicate to fetch the jcr content data. It was working fine in lower environments but in production it is not giving any result. Using query builder debugger tool with correct xpath query it is loading infinitely if the predicate has nodename but with property it is giving result.

Please help.

Thanks

0 Replies

Avatar

Level 10

Can you test this Query on a fresh Publish installation to rule out issue iwith the current instance.

Avatar

Administrator

Can you help me with the query?

~kautuk

Avatar

Level 2

Query is:

path=/content/<proj>/..

nodename=pageHeader

p.limit=-1

when i am hitting this query using querybuilder debugger tool it is loading infinitely and in logs it is giving the following warning: /libs/cq/search/content/querydebug.html HTTP/1.1] org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy Traversed 90000 nodes (275628 index entries

Avatar

Level 10

This looks like an index issue - have you set the index properly?

Avatar

Level 2

Thanks for the reply. We have asked our devops team to setup the indexes in production.