Hey Michael,
You could do it by combining it, search all properties by using the '.' and
then combine it with an and expression where you say myproperty does not
contain myvalue (by prefixing it with a minus sign)
For example: /jcr:root//*[jcr:contains(.,'myvalue') and
Just as an extra, seeing as JCR XPath is actually deprecated, you could also
easily do it in JCR SQL2 ;)
select * from [nt:base] as s where contains(*,'myvalue') and not
contains(myproperty, 'myvalue')
> On 4 Feb 2017, at 21:48, Roy Teeuwen wrote:
>
> Hey Michael,
>
> You
Hi guys,
is it possible to do a jcr:contains(.,"my value") Query and exclude one or more
properties from being searched for the current search?
Something like "search all possible properties but ignore property1 and
property2".
Or is it just possible in the other way explicit name the
Hey Michael,
That's exactly what first argument is for. The dot "." means that it will
search all the properties. If you want to search in a specific property, you
could make it jcr:contains(@myproperty,"my value")
Greets
Roy
> On 4 Feb 2017, at 19:31, zerocoo...@web.de wrote:
>
> Hi guys,
>
Hi,
thanks for your response. I know this normal search pattern in a specific
property.
I was hoping there is something like a blacklist -> exclude one property but
search all others without name theme explicit. It seems not ;-)
Greetings,
Michael