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. |
doc | |
String | field | |
System. |
value |
Exceptions
Type | Condition |
---|---|
Stale |
If the index has changed since this reader was opened |
Corrupt |
If the index is corrupt |
Lock |
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. |
doc | |
System. |
field | |
System. |
value |
Exceptions
Type | Condition |
---|---|
Stale |
If the index has changed since this reader was opened |
Corrupt |
If the index is corrupt |
Lock |
If another writer has this index open ( |
See Also
DecodeNorm (System.Byte )