lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Scoring a query with OR's
Date Mon, 10 Mar 2008 01:06:43 GMT
With AND, _all_ clauses are required, not just most.   With OR, the  
idea is to reward documents that match more clauses.

	Erik


On Mar 9, 2008, at 1:38 PM, Ghinwa Choueiter wrote:
> but shouldn't the coord factor kick in with AND instead of OR? I  
> understand why you would want to use coord in the case of AND,  
> where you reward more the documents that contain most of the terms  
> in the query. However in the case of OR, it should not matter if  
> all the OR  operands are in the document?
>
> -Ghinwa
>
> ----- Original Message ----- From: "Erik Hatcher"  
> <erik@ehatchersolutions.com>
> To: <java-user@lucene.apache.org>
> Sent: Sunday, March 09, 2008 1:22 PM
> Subject: Re: Scoring a query with OR's
>
>
>>
>> On Mar 9, 2008, at 12:39 PM, Ghinwa Choueiter wrote:
>>> but what exactly happens when there are OR's, for eg.  (life OR   
>>> place OR time)
>>>
>>> The scoring equation can get a score for life, place, time   
>>> separately, but what does it do with them then? Does it also add  
>>> them.
>>
>> The coord factor kicks in then:
>>
>> <http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc// 
>> org/ apache/lucene/search/DefaultSimilarity.html#coord(int,%20int)>
>>
>> the formula listed here should help too:
>>
>> <http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc// 
>> org/ apache/lucene/search/Similarity.html>
>>
>> Erik
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
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