Sets a weight for the index with the given name. If a weight for the index has previously
been set, it will be overwritten.
Namespace: Gronewold.SphinxConnectorAssembly: Gronewold.SphinxConnector (in Gronewold.SphinxConnector.dll) Version: 2.7.0.3011 (2.7.0.3011)
Syntax
| C# |
|---|
public void SetIndexWeight( string indexName, int weight ) |
| Visual Basic |
|---|
Public Sub SetIndexWeight ( _ indexName As String, _ weight As Integer _ ) |
Parameters
- indexName
- Type: System..::..String
Name of the index.
- weight
- Type: System..::..Int32
The weight to assign to the index.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | indexName is empty. |
| System..::..ArgumentNullException | indexName is null. |