You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Martin Zdila <m....@mwaysolutions.com> on 2008/02/01 17:59:23 UTC

jcr:contains hidden features

Hello

I've found out that if I use jcr:contains(@property, '*') it will return true 
if property exists. I haven't found this feature in JSR-170 document. Is it a 
proprietary feature of Jackrabbit? If so, is there some documentation about 
all such features?

Thanks in advance.

-- 
Martin Zdila 
CTO

M-Way Solutions Slovakia s.r.o.
Letna 27, 040 01 Kosice
Slovakia

tel:+421-908-363-848
mailto:m.zdila@mwaysolutions.com
http://www.mwaysolutions.com
xmpp:zdila@jabbim.sk (Jabber)
skype:m.zdila

RE: jcr:contains hidden features

Posted by Ard Schrijvers <a....@hippo.nl>.
jcr:contains can have any valid lucene syntax, hence also *.
jcr:contains(@property, '*')  is though not the prefrerrable way to find
if a property exists.

[@property] is.

-Ard

> 
> i dunno what behavior to expect as the * operator is 
> documented neither in JSR-170 nor Jackrabbit wiki.
> 
> On Fri 1. February 2008 18:15:57 Brian Thompson wrote:
> > What behavior would you expect?  Unless I misunderstood 
> your message, 
> > the query you specified asked if @property contained "any value"; 
> > thus, if the property exists, it meets the criteria you specified.
> >
> >
> >
> > -Brian
> >
> > On Feb 1, 2008 10:59 AM, Martin Zdila 
> <m....@mwaysolutions.com> wrote:
> > > Hello
> > >
> > > I've found out that if I use jcr:contains(@property, '*') it will 
> > > return true if property exists. I haven't found this feature in 
> > > JSR-170 document. Is it a proprietary feature of 
> Jackrabbit? If so, 
> > > is there some documentation about all such features?
> > >
> > > Thanks in advance.
> > >
> > > --
> > > Martin Zdila
> > > CTO
> > >
> > > M-Way Solutions Slovakia s.r.o.
> > > Letna 27, 040 01 Kosice
> > > Slovakia
> > >
> > > tel:+421-908-363-848
> > > mailto:m.zdila@mwaysolutions.com
> > > http://www.mwaysolutions.com
> > > xmpp:zdila@jabbim.sk (Jabber)
> > > skype:m.zdila
> 
> 
> 
> --
> Martin Zdila
> CTO
> 
> M-Way Solutions Slovakia s.r.o.
> Letna 27, 040 01 Kosice
> Slovakia
> 
> tel:+421-908-363-848
> mailto:m.zdila@mwaysolutions.com
> http://www.mwaysolutions.com
> xmpp:zdila@jabbim.sk (Jabber)
> skype:m.zdila
> 

Re: jcr:contains hidden features

Posted by Martin Zdila <m....@mwaysolutions.com>.
i dunno what behavior to expect as the * operator is documented neither in 
JSR-170 nor Jackrabbit wiki.

On Fri 1. February 2008 18:15:57 Brian Thompson wrote:
> What behavior would you expect?  Unless I misunderstood your message, the
> query you specified asked if @property contained "any value"; thus, if the
> property exists, it meets the criteria you specified.
>
>
>
> -Brian
>
> On Feb 1, 2008 10:59 AM, Martin Zdila <m....@mwaysolutions.com> wrote:
> > Hello
> >
> > I've found out that if I use jcr:contains(@property, '*') it will return
> > true
> > if property exists. I haven't found this feature in JSR-170 document. Is
> > it a
> > proprietary feature of Jackrabbit? If so, is there some documentation
> > about
> > all such features?
> >
> > Thanks in advance.
> >
> > --
> > Martin Zdila
> > CTO
> >
> > M-Way Solutions Slovakia s.r.o.
> > Letna 27, 040 01 Kosice
> > Slovakia
> >
> > tel:+421-908-363-848
> > mailto:m.zdila@mwaysolutions.com
> > http://www.mwaysolutions.com
> > xmpp:zdila@jabbim.sk (Jabber)
> > skype:m.zdila



-- 
Martin Zdila 
CTO

M-Way Solutions Slovakia s.r.o.
Letna 27, 040 01 Kosice
Slovakia

tel:+421-908-363-848
mailto:m.zdila@mwaysolutions.com
http://www.mwaysolutions.com
xmpp:zdila@jabbim.sk (Jabber)
skype:m.zdila

Re: jcr:contains hidden features

Posted by Brian Thompson <el...@gmail.com>.
What behavior would you expect?  Unless I misunderstood your message, the
query you specified asked if @property contained "any value"; thus, if the
property exists, it meets the criteria you specified.



-Brian



On Feb 1, 2008 10:59 AM, Martin Zdila <m....@mwaysolutions.com> wrote:

> Hello
>
> I've found out that if I use jcr:contains(@property, '*') it will return
> true
> if property exists. I haven't found this feature in JSR-170 document. Is
> it a
> proprietary feature of Jackrabbit? If so, is there some documentation
> about
> all such features?
>
> Thanks in advance.
>
> --
> Martin Zdila
> CTO
>
> M-Way Solutions Slovakia s.r.o.
> Letna 27, 040 01 Kosice
> Slovakia
>
> tel:+421-908-363-848
> mailto:m.zdila@mwaysolutions.com
> http://www.mwaysolutions.com
> xmpp:zdila@jabbim.sk (Jabber)
> skype:m.zdila
>