Method SetNorm
SetNorm(Int32, String, Byte)
Expert: Resets the normalization factor for the named field of the named
document. The norm represents the product of the field's Boost
and its
NOTE: If this field does not store norms, then this method call will silently do nothing.
Declaration
public virtual void SetNorm(int doc, String field, byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | |
String | field | |
System.Byte | value |
Exceptions
Type | Condition |
---|---|
StaleReaderException | If the index has changed since this reader was opened |
CorruptIndexException | If the index is corrupt |
LockObtainFailedException | If another writer has this index open ( |
See Also
DecodeNorm(System.Byte)
SetNorm(Int32, String, Single)
Expert: Resets the normalization factor for the named field of the named document.
Declaration
public virtual void SetNorm(int doc, String field, float value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | |
System.String | field | |
System.Single | value |
Exceptions
Type | Condition |
---|---|
StaleReaderException | If the index has changed since this reader was opened |
CorruptIndexException | If the index is corrupt |
LockObtainFailedException | If another writer has this index open ( |
See Also
DecodeNorm(System.Byte)