Click or drag to resize
IFulltextQueryOptionsTDocumentFieldWeight Method (String, Int32)
Sets a weight for the field with the given name.

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

Parameters

fieldName
Type: SystemString
The name of the field for which the weight should be set.
weight
Type: SystemInt32
The weight to set for the field.

Return Value

Type: IFulltextQueryOptionsTDocument
The current instance.
Exceptions
ExceptionCondition
ArgumentExceptionOccurs when the field name is empty.
ArgumentNullExceptionOccurs when the field name is null.
See Also