lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
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:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message