lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: File format for norms inconsistent with IndexReader.norms()
Date Wed, 13 Aug 2003 18:06:29 GMT
Ype Kingma wrote:
> The file format allows only one norm per doc, quoting from there:
> 
>   The .nrm file contains, for each document, a byte that encodes a value that
>   is multiplied into the score for hits on that field: 
>   Norms (.nrm) --> <Byte> ** SegSize 
>   SegSize is the number of documents contained in the segment index.
> 
> But the IndexReader.norms() method allows one norm
> per document field:
> 
>   public abstract byte[] norms(String field)
> 
> Is the file format documentation is incomplete here?

It's just wrong!  There's a norm file for each indexed field with a byte 
for each document.  These are the .n[0-9]* files.

Doug


Mime
View raw message