jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rainer <RainerBlument...@gmx.de>
Subject Re: EQUALS instead of CONTAINS ?
Date Wed, 18 Apr 2007 13:36:04 GMT

1. thx


Marcel Reutegger wrote:
> 
> 
> with the default analyzer configured this shouldn't actually be the case
> ('foo' 
> and 'fooooo' are distinct tokens), unless you have:
> 
> ...WHERE CONTAINS(*, 'foo*')
> 

if i search for CONTAINS(*, 'foo') i also get the 'fooooooo' hits, cause
'foooooo' contains 'foo' (am i wrong?)
and u say this is incorrect behaviour?? 

is "%" or "*" the correct wildcard here?



Marcel Reutegger wrote:
> 
>> i only want to get those pages, that exactly match 'foo' in any
>> property...
> 
> that's not possible with a JCR query. you have to name the properties
> individually:
> 
> where propA = 'foo' or propB = 'foo' or propC = 'foo' ...
> 
> regards
>   marcel
> 

OK.. so i need to get the property names before i can query for an exact
match... an "all_Properties" Wildcard does not exist! it s a pitty, but it's
much better then "try and error" when u cant win :)

BTW is a "/" kind of special character in JCR queries? i get some strange
behaviour sometimes...
-- 
View this message in context: http://www.nabble.com/EQUALS-instead-of-CONTAINS---tf3595051.html#a10058798
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message