Using not equal To | Community
Skip to main content
varung44569684
New Participant
January 5, 2016
Solved

Using not equal To

  • January 5, 2016
  • 5 replies
  • 3012 views

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

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 kautuk_sahni

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

5 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
January 6, 2016

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
Jitendra_S_Toma
New Participant
January 5, 2016
Not quite sure but explore this document if that could help you. http://aemcq5.blogspot.in/2014/11/cq5-querybuilder-simplified.html?m=1
varung44569684
New Participant
January 5, 2016

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.

GK-007
New Participant
January 5, 2016

Please explain the use case completely to help on this.

-Kishore