Skip to content

Apache Lucene open-source search software

- Corrected(?) the documentation about normalization factors.

Otis Gospodnetic1f9fe4fff7ab
diff --git a/docs/fileformats.html b/docs/fileformats.html
index a5b462a0ac6..efeabb0110f 100644
--- a/docs/fileformats.html
+++ b/docs/fileformats.html
@@ -1502,12 +1502,13 @@
</td></tr>
<tr><td>
<blockquote>
- <p>The .nrm file contains,
+ <p>There's a norm file for each indexed field with a byte for
+ each document. The .n[0-9]* file contains,
for each document, a byte that encodes a value that is multiplied
into the score for hits on that field:
</p>
<p>Norms
- (.nrm) --&gt; &lt;Byte&gt;<sup>SegSize</sup>
+ (.n[0-9]*) --&gt; &lt;Byte&gt;<sup>SegSize</sup>
</p>
<p>Each
byte encodes a floating point value. Bits 0-2 contain the 3-bit
diff --git a/xdocs/fileformats.xml b/xdocs/fileformats.xml
index e7414ac227e..9cfb16cde41 100644
--- a/xdocs/fileformats.xml
+++ b/xdocs/fileformats.xml
@@ -1071,12 +1071,13 @@
</p>
</subsection>
<subsection name="Normalization Factors">
- <p>The .nrm file contains,
+ <p>There's a norm file for each indexed field with a byte for
+ each document. The .n[0-9]* file contains,
for each document, a byte that encodes a value that is multiplied
into the score for hits on that field:
</p>
<p>Norms
- (.nrm) --&gt; &lt;Byte&gt;<sup>SegSize</sup>
+ (.n[0-9]*) --&gt; &lt;Byte&gt;<sup>SegSize</sup>
</p>
<p>Each
byte encodes a floating point value. Bits 0-2 contain the 3-bit