lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Eliminating norms ... completley
Date Mon, 10 Oct 2005 19:14:48 GMT
Chris Hostetter wrote:
>   2) Can you think of a clean way for individual applications to eliminate
>      norms (via subclassing the lucene code base - ie: no patching)

Can't you simply subclass FilterIndexReader and override norms() to 
return a cached dummy array of Similarity.encodeNorm(1.0f) for those 
fields whose norms you don't want?  You'd still have to have a single 
array of bytes, but no longer one per field.

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