Click or drag to resize

IFulltextQueryOptionsTDocumentFieldWeight(String, Int32) Method

Sets a weight for the field with the given name.

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

Parameters

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

Return Value

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