The fieldnorm represents the length associated to a given Field of a given document.
This metric is important to compute the score of a document : a document having a query word in one its short fields (e.g. title) is likely to be more relevant than in one of its longer field (e.g. body).
fieldnorm on one byte with some precision loss,
using the exact same scheme as Lucene. Each value is place on a log-scale
that takes values from
A value on this scale is identified by a
Apart from compression, this scale also makes it possible to
precompute computationally expensive functions of the fieldnorm
in a very short array.
This trick is used by the BM25 similarity.
Reads the fieldnorm associated to a document. The fieldnorm represents the length associated to a given Field of a given document.
The fieldnorms serializer is in charge of the serialization of field norms for all fields.