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: contains and full text searching.
Date Fri, 08 Feb 2008 13:19:54 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."

:-) Aaah, now you say it I kind of remember. 

@Sean: the reason why even with ANDed terms you can get 2 hits for "I
want cookies" , while you have one document with "I have cookies" and
one only "cookies" is because "I" and "want" might de discarded if they
are considered being stopwords

-Ard

> 
> regards
>   marcel
> 
> 

Mime
View raw message