Skip to main content
New Participant
October 12, 2017

Query builder is not working with nodename predicate

  • October 12, 2017
  • 7 replies
  • 3579 views

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
October 13, 2017

Can you help me with the query?

~kautuk

Kautuk Sahni
New Participant
October 13, 2017

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

smacdonald2008
New Participant
October 13, 2017

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

smacdonald2008
New Participant
October 13, 2017

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