lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Peculiar Behavior with Field queries
Date Sun, 16 Jun 2002 23:13:11 GMT
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>


Mime
View raw message