Apache Lucene.Net 2.4.0 Class Library API

IndexReader.SetNorm Method

Expert: Resets the normalization factor for the named field of the named document. The norm represents the product of the field's {@link Lucene.Net.Documents.Fieldable#SetBoost(float) boost} and its {@link Similarity#LengthNorm(String, int) length normalization}. Thus, to preserve the length normalization values when resetting this, one should base the new value upon the old.

Overload List

Expert: Resets the normalization factor for the named field of the named document. The norm represents the product of the field's {@link Lucene.Net.Documents.Fieldable#SetBoost(float) boost} and its {@link Similarity#LengthNorm(String, int) length normalization}. Thus, to preserve the length normalization values when resetting this, one should base the new value upon the old.

public void SetNorm(int,string,byte);

Expert: Resets the normalization factor for the named field of the named document.

public virtual void SetNorm(int,string,float);

See Also

IndexReader Class | Lucene.Net.Index Namespace | Norms |