lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Steichen" <te...@net-frame.com>
Subject Re: Peculiar Behavior with Field queries
Date Mon, 17 Jun 2002 00:53:32 GMT
Oits,

You may be right that the stop words are at work here.  What I was expecting
to do is be able to match a specific phrase ("on the job"), even if it
includes stop words.  But I guess that may not be the way that Lucene works,
right?

Regards,

Terry

----- Original Message -----
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Sunday, June 16, 2002 7:13 PM
Subject: Re: Peculiar Behavior with Field queries


> Hello,
>
> I'm not sure what the problem is :)
> What do you expect to get back?
> Are you wondering why 'on the' part is not matched?
> If so, it's probably because both 'on' and 'the' are in the list of
> stop words, which are thrown out when/before indexing.
>
> Otis
>
> --- Terry Steichen <terry@net-frame.com> wrote:
> > Hello,
> >
> > I'm using Lucene (1.2RC5) and, when indexing, I include a field
> > called "headline" using the following line of code in the document I
> > create to use for indexing:
> >
> >       addField("headline", root.elementText("headline"), true, true,
> > true, doc);
> >
> > When I search on headline:term1, it works just fine.  But I've
> > noticed that if I query using, for example,
> >
> >         headline:"on the job"
> >
> > I will get returned all items that have the term 'job' in their
> > headline.
> >
> > I presume I've overlooked something and would appreciate any
> > suggestions on what that might be.
> >
> > Regards,
> >
> > Terry Steichen
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message