IFulltextQueryOptionsTDocumentFieldWeight(String, Int32) Method

Sets a weight for the field with the given name.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
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

ArgumentExceptionOccurs when the field name is empty.
ArgumentNullExceptionOccurs when the field name is null.

See Also