lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maik Schreiber <blizzy-keyword-lucene_dev.656...@blizzy.de>
Subject Re: constant scoring queries
Date Wed, 11 May 2005 08:23:51 GMT
> 1. Add two methods to Query.java:
> 
>   public boolean constantScoring();
>   public void constantScoring(boolean);
> 
>   When constantScoring(), the boost() is the score for matches.
> 
> 2. Add two methods to Searcher.java:
> 
>   public BitSet cachedBitSet(Query) { return null; }
>   public void cacheBitSet(Query, BitSet) {}

I'd like to vote for a slight variation here, that is, going in line with the
beans theme. Namely, the method signatures should look like:

public boolean isConstantScoring();
public void setConstantScoring(boolean);

public BitSet getCachedBitSet(Query);
public void setCachedBitSet(Query, BitSet);

-- 
Maik Schreiber   *   http://www.blizzy.de

GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1F11D713
Key fingerprint: CF19 AFCE 6E3D 5443 9599 18B5 5640 1F11 D713

---------------------------------------------------------------------
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