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.
NOTE: If this field does not store norms, then
this method call will silently do nothing.
since this reader was opened
has this index open ( could not
be obtained)
Namespace: Lucene.Net.IndexCopyC#
write.lock
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual void SetNorm( int doc, string field, byte value_Renamed ) |
Visual Basic |
---|
Public Overridable Sub SetNorm ( _ doc As Integer, _ field As String, _ value_Renamed As Byte _ ) |
Visual C++ |
---|
public: virtual void SetNorm( int doc, String^ field, unsigned char value_Renamed ) |
Parameters
- doc
- Type: System..::..Int32
[Missing <param name="doc"/> documentation for "M:Lucene.Net.Index.IndexReader.SetNorm(System.Int32,System.String,System.Byte)"]
- field
- Type: System..::..String
[Missing <param name="field"/> documentation for "M:Lucene.Net.Index.IndexReader.SetNorm(System.Int32,System.String,System.Byte)"]
- value_Renamed
- Type: System..::..Byte
[Missing <param name="value_Renamed"/> documentation for "M:Lucene.Net.Index.IndexReader.SetNorm(System.Int32,System.String,System.Byte)"]