Can Query Builder search on multi-value property NOT containing a value? | Community
Skip to main content
Level 2
Sep 26, 2018 1:05 PM UTC
Solved

Can Query Builder search on multi-value property NOT containing a value?

Is there a way to use Query Builder to find a multi-value property that does NOT containt a particular value?

For instance, we have a "language" property that is a multi-value String. Can Query Builder find a node where the language property does not contain 'en' (English)?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 26, 2018 4:51 PM UTC

Hi,

You got confused between 'exists' and 'not'

property.operation :

“equals” for exact match (default),

“unequals” for unequality comparison,

“like” for using the jcr:like xpath function ,

“not” for no match ,

“exists” for existence match

Arun Patidar

11 replies

smacdonald2008
Level 10
Sep 26, 2018 1:17 PM UTC

I have personally never written a query to exclude values like this. Check this for possible help -- Query Builder Predicate Reference

Translate