lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen" <>
Subject Re: CustomScoreQuery and BooleanQuery
Date Thu, 07 Aug 2008 10:08:59 GMT
When combining any sub queries, a scorer has at least two things to decide:
which docs to match, and once matched, how to score. Boolean Queries applies
specific logics for this, and some queries allow some control of the way to
score. For current CustomScoreQuery things are more straightforward - the
single sub-query dictates which docs match, the VSQs are expected to provide
a score for any doc matched by the SQ, and the CSQ then combines the score,
in a way that can be customized.

Can you provide more details on your use case? Perhaps it can be answered
with existing Lucene mechanisms.


Jay wrote:

> Hi,
> The new addition of the class CustomScoreQuery is very useful and powerful
> in customizing the score of one query using the indexed field values.
> Another feature that I am looking for in Lucene is the ability to combine
> the scores of multiple (sub)queries in a way different from the
> BooleanQuery. BoostingQuery is one such attempt but it's not very flexible
> (e.g. the damping is independent of the scores of sub queries).
> Does anyone know any other existing examples similar to CustomScoreQuery
> but deal with multiple sub queries?
> Thanks!
> Jay

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message