You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Ze...@web.de on 2017/02/04 18:31:57 UTC
XPath jcr:contains(.,"value") exlude one or more Properties
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 searched properties like "search the term in property3 and property4"...
Thanks, have a nice weekend
Michael
Re: XPath jcr:contains(.,"value") exlude one or more Properties
Posted by Roy Teeuwen <ro...@teeuwen.be>.
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, ZeroCool86@web.de wrote:
>
> 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 searched properties like "search the term in property3 and property4"...
>
> Thanks, have a nice weekend
> Michael