lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Overriding coordination
Date Mon, 29 Mar 2004 19:24:23 GMT
Boris Goldowsky wrote:
> I have a situation where I'm querying for something in several fields,
> with a clause similar to this:
>   (title:(two words)^20  keywords:(two words)^10  body:(two words))
> 
> Some good documents are being scored too low if the query terms do not
> occur in the "body" field.  I naively thought that would only make a few
> % difference, because of the large boosts on the title and keywords
> fields, but in fact the document loses 1/3 of its score because of the
> coordination term (2/3 rather than 1, because only 2 out of the three
> clauses matched).
> 
> Now, I love the coordination term for the multiple-word queries
> (including the ones embedded in the query above), but for the
> conjunction of the different fields I'd like to remove it, and just have
> each clause add its score.  I feel like there's a way to do this,
> perhaps with a custom Similarity subclass, but I can't quite see how to
> set it up.

This is possible in the current CVS, and will be possible in 1.4.

I attached an example to a recent email:
 
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=lucene-user@jakarta.apache.org&msgNo=7439

Doug

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


Mime
View raw message