jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: jcr:contains hidden features
Date Mon, 04 Feb 2008 08:24:57 GMT
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.zdila@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
> 

Mime
View raw message