lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: Eliminating norms ... completley
Date Sat, 08 Oct 2005 00:37:05 GMT
I'm approaching it the same as term vectors... make the norms optional on a
per field basis.
My first cut is returning a dummy norm array filled in with the equiv of
1.0f so I didn't have to go modify all the queries/weights/scorers that
retrieve the norms. For best performance, those scorers should be modified
to handle null.


On 10/7/05, Robert Engels <> wrote:
> I did exactly this in my custom lucene, since the array of a byte per
> document is extremely wasteful in a lot of applications. I just changed
> the
> code to return null from getNorms() and modified the callers to treat a
> null
> array as always 1 for any document.

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