lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: constant scoring queries
Date Wed, 11 May 2005 15:54:12 GMT
Yonik Seeley wrote:
> Could you elaborate on the advantage of having say a TermQuery that
> could be either normal-scoring or constant-scoring vs two different
> Query classes for doing this?  They seem roughly equivalent.

You could code it that way too.  It would require exposing TermWeight 
and TermScorer as public classes that would also need to be subclassed. 
  My guess is that you'd have to write more code to implement it that 
way than to have a boolean flag.


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

View raw message