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" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to