내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Using not equal To

Avatar

Level 2

Hi Team , 

Can someone help me on how to use "Not Equal to " in QueryBuilder. 

My query is of like this type.

 

http://localhost:4502//bin/querybuilder.json?p.hits=full&
primarytype=nt:unstructured&path=/content/data/masterdata/program&property=programName&property.value!=marketing&p.limit=-1

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Administrator

Hi 

Please have a look at QueryBuilder Interface,

Link:- https://docs.jboss.org/exojcr/1.12.13-GA/developer/en-US/html/ch-jcr-query-usecases.html

Reference Link:- https://gist.github.com/yangzhe1991/10349122

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

원본 게시물의 솔루션 보기

5 답변 개

Avatar

Level 9

Please explain the use case completely to help on this.

-Kishore

Avatar

Level 2

Hi Kishore ,

First of all thanks for the reply.

Actually using QueryBuilder.json,  I want to get the list of all nodes at a particular path , where every node has a property "programName", and I want to have only those nodes where the programName does not equal to "Marketing".

If I use the query http://localhost:4502/bin/querybuilder.json?p.hits=full&
primarytype=nt:unstructured&path=/content/data/masterdata/program&property=programName&property.value=marketing&p.limit=-1, it gives me those nodes with programName as Marketing but not vice versa.

That is this query http://localhost:4502/bin/querybuilder.json?p.hits=full&
primarytype=nt:unstructured&path=/content/data/masterdata/program&property=programName&property.value!=marketing&p.limit=-1 does not works.

Avatar

Level 9
Not quite sure but explore this document if that could help you. http://aemcq5.blogspot.in/2014/11/cq5-querybuilder-simplified.html?m=1

Avatar

Employee Advisor

Avatar

정확한 답변 작성자:
Administrator

Hi 

Please have a look at QueryBuilder Interface,

Link:- https://docs.jboss.org/exojcr/1.12.13-GA/developer/en-US/html/ch-jcr-query-usecases.html

Reference Link:- https://gist.github.com/yangzhe1991/10349122

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni