Query builder is not working with nodename predicate | Community
Skip to main content
Level 2
Oct 12, 2017 4:28 PM UTC

Query builder is not working with nodename predicate

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

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

7 replies

kautuk_sahni
Employee
Oct 13, 2017 7:01 AM UTC

Can you help me with the query?

~kautuk

Translate
Kautuk Sahni
Level 2
Oct 13, 2017 5:42 PM UTC

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

Translate
smacdonald2008
Level 10
Oct 13, 2017 5:46 PM UTC

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

Translate
smacdonald2008
Level 10
Oct 13, 2017 6:32 AM UTC

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

Translate