jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: contains and full text searching.
Date Fri, 08 Feb 2008 12:54:56 GMT
Hi,

Ard Schrijvers wrote:
> Hello,
> 
>> Hi guys,
>>
>> I'm trying to search out an exact phrase, for instance "I 
>> want cookies", in a group of nodes but nodes that contain any 
>> of those words are being returned.
>>
>> XPath : //webfmis:content[jcr:contains(@webfmis:body,"I want 
>> cookies")]
> 
> Yes, your "I want cookies" will be tokenized and OR-ed. You need to have
> something like:

please note, the default operator is AND. from the spec:

"Terms separated by whitespace are implicitly ANDed together."

regards
  marcel


Mime
View raw message