Querybuilder Debugging Issue | Community
Skip to main content
adriana27912162
Level 2
July 5, 2016
Solved

Querybuilder Debugging Issue

  • July 5, 2016
  • 5 replies
  • 1662 views

Hello,

I am attempting to create a search in querybuilder that is finding a property and searching for content reflecting what is put in the property value of the jcr:title. Code example below.

path=path type=nt:unstructured 1_type=nt:unstructured 1_nodename=nameofproperty 2_relativedaterange.type=nt:unstructured 2_relativedaterange.property=nameofproperty 2_relativedaterange.lowerBound=-1d 2_relativedaterange.upperBound= group.3_property=fn:lower-case(../../@jcr:title) group.3_property.value=%designed% group.3_property.operation=like group.p.and=true

In my code I am getting a Null Pointer exception. I know it is not the code itself because in the querybuilder debugger I am getting a continous query. What is the problem with this querybuilder set up? Can someone help? Thanks in advance

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 adriana27912162

Hey Tuhin, I've decided to just use the cq:Page type and find the main page for what I am attempting to do instead of having a result for each nt:unstructured node. The previous method was unnecessary.

5 replies

Level 4
July 5, 2016

CQ comes with a tool to help in these situations: 

http://cq-ops.tumblr.com/post/23543240500/how-to-use-cqs-query-debugger-tool

adriana27912162
Level 2
July 5, 2016

Hi Steve, The error is a Null Pointer Exception on my test page(s) but on the querybuilder debugger you just posted it is running a continous query instead of just returning 0 results.

Tuhin_Ghosh
Level 8
July 6, 2016

Hi,

Please remove the second one and see if it works.

  1. type=nt:unstructured
  2. 1_type=nt:unstructured

 

Thanks

Tuhin

Tuhin_Ghosh
Level 8
July 6, 2016

Is it solved ?

adriana27912162
adriana27912162AuthorAccepted solution
Level 2
July 7, 2016

Hey Tuhin, I've decided to just use the cq:Page type and find the main page for what I am attempting to do instead of having a result for each nt:unstructured node. The previous method was unnecessary.