lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
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.

Doug

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


Mime
View raw message