Method EncodeNormValue
EncodeNormValue(Single, Int32)
The default implementation encodes boost / sqrt(length)
with SingleToByte315(Single). This is compatible with
Lucene's default implementation. If you change this, then you should
change DecodeNormValue(Byte) to match.
Declaration
protected virtual byte EncodeNormValue(float boost, int fieldLength)
Parameters
Type | Name | Description |
---|---|---|
System.Single | boost | |
System.Int32 | fieldLength |
Returns
Type | Description |
---|---|
System.Byte |