IFulltext Query OptionsTDocumentIndex Weight Method
Sets a weight for the index with the given name.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The current instance.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
IFulltextQueryOptions<TDocument> IndexWeight(
string indexName,
int weight
)VB
Function IndexWeight (
indexName As String,
weight As Integer
) As IFulltextQueryOptions(Of TDocument)Parameters
- indexName String
- The name of the index for which the weight should be set.
- weight Int32
- The weight to set for the index.
Return Value
IFulltextQueryOptionsTDocumentThe current instance.