lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie <ja...@stimulussoft.com>
Subject Re: unexpected query results (AND and OR)
Date Fri, 04 Apr 2008 13:44:34 GMT
I would also like to point out that we also thought about using a filter 
but it is being used for other things.

Jamie wrote:
> Hi there
>
> I need some help in understanding Lucene's query mechanism. I am 
> receiving unexpected query results when combining terms with AND and 
> OR operators. We are using Lucene to index emails. Our problem is that 
> when we execute a search such as '(from:"john@sun.com") and 
> (to:"tim@aol.com")' we are receiving results that do not contain both 
> john@sun.com and tim@aol.com. i.e. There are some results containing 
> only john@sun.com or tim@aol.com. The AND operator does not appear to 
> work as expected by requiring both terms to appear in the document. We 
> thought about using the lucene score value to filter exact matches out 
> but we cannot do this as documents with even scores around 70% are 
> applicable. Are we using Lucene in the wrong way? Is there something 
> that we are missing?
>
> Thanks in advance
> Jamie
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


-- 
Stimulus Software - MailArchiva
Email Archiving And Compliance
USA Tel: +1-713-366-8072 ext 3
UK Tel: +44-20-80991035 ext 3
Email: jamie@stimulussoft.com
Web: http://www.mailarchiva.com

To receive MailArchiva Enterprise Edition product announcements, send a message to: <mailarchiva-enterprise-edition-subscribe@stimulussoft.com>



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message