Click or drag to resize

IFulltextQueryOptions<TDocument>.FieldWeight Method (String, Int32)

Sets a weight for the field with the given name.

Namespace:  SphinxConnector.FluentApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntax
IFulltextQueryOptions<TDocument> FieldWeight(
	string fieldName,
	int weight
)

Parameters

fieldName
Type: System.String
The name of the field for which the weight should be set.
weight
Type: System.Int32
The weight to set for the field.

Return Value

Type: IFulltextQueryOptions<TDocument>
The current instance.
Exceptions
ExceptionCondition
ArgumentExceptionOccurs when the field name is empty.
ArgumentNullExceptionOccurs when the field name is null.
See Also