Sets a weight for the field with the given name. If a weight for the field has previously been set, it will be overwritten.

Namespace: Gronewold.SphinxConnector
Assembly: Gronewold.SphinxConnector (in Gronewold.SphinxConnector.dll) Version: 2.7.0.3011 (2.7.0.3011)

Syntax

C#
public void SetFieldWeight(
	string fieldName,
	int weight
)
Visual Basic
Public Sub SetFieldWeight ( _
	fieldName As String, _
	weight As Integer _
)

Parameters

fieldName
Type: System..::..String
Name of the field.
weight
Type: System..::..Int32
The weight to assign to the field.

See Also