query builder | Community
Skip to main content
Keerthi0555
March 25, 2024
Solved

query builder

  • March 25, 2024
  • 1 reply
  • 500 views

Query builder to have one property but two values , need to get result if both values are present to a node, used and operation but it's not working.

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 narendragandhi

Hi @keerthi0555 

 

Are you looking to perform this on a multi-valued property where you want to get the nodes with multiple values to match ("A" and "B" and "C"):

 

You can do something like below-

http://localhost:4502/bin/querybuilder.json?property=jcr%3atitle&property.and=true&property.1_value=test&property.2_value=foo&property.3_value=bar

 

Also attached one example using querybuilder.

 

Hope this helps. Let me know for any additional questions.

 

Thanks

Narendra

1 reply

narendragandhi
Community Advisor
narendragandhiCommunity AdvisorAccepted solution
Community Advisor
March 25, 2024

Hi @keerthi0555 

 

Are you looking to perform this on a multi-valued property where you want to get the nodes with multiple values to match ("A" and "B" and "C"):

 

You can do something like below-

http://localhost:4502/bin/querybuilder.json?property=jcr%3atitle&property.and=true&property.1_value=test&property.2_value=foo&property.3_value=bar

 

Also attached one example using querybuilder.

 

Hope this helps. Let me know for any additional questions.

 

Thanks

Narendra