| IFulltextQueryOptionsTDocumentFieldWeight 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
)
Function FieldWeight (
fieldName As String,
weight As Integer
) As IFulltextQueryOptions(Of TDocument)
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:
IFulltextQueryOptionsTDocumentThe current instance.
Exceptions See Also