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: Querying on multi-value properties
Date Tue, 18 Dec 2007 11:41:33 GMT

> > You can use contains and 'and' the different terms, ie,
> 
> > "//*[jcr:contains(.,'stephen') and jcr:contains(.,'king')]"
> Herein lies the main problem.  Say I had a node with 2 values 
> for the property author, namely "stephen jordan" and "terry king".
> The above query would still flag this node as a matching 
> node, though the same property _actually_ doesn't contain 
> stephen AND king.  Probably the reason for this is that the 
> property is searched as a whole, and a special case for 
> multi-value is not made.

I understand your problem

> 
> Regarding analysers, I actually have my own analyser, etc.  

Yes, but I do not think a specific property based analyzer which could
still resolve your issue (the way i explained before)

> So that is not a problem.  Just that a search that I wish 
> would be enforced only on each single value of a multi-value 
> property doesn't happen.  The search is "spread" across the 
> property values.
> 
> Is this how it should work?

I am not sure wether this is according specs. Anybody else?

Regards Ard


Mime
View raw message