IFulltextQueryOptionsTDocumentSet Method

Sets the option with the given name to the given value. Use this in case a new option has been added to Sphinx, but is not yet supported by the fluent API.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
IFulltextQueryOptions<TDocument> Set(
	string optionName,
	string value
)

Parameters

optionName  String
The name of the option to set.
value  String
The value to set the option to.

Return Value

IFulltextQueryOptionsTDocument
The current instance.

Exceptions

ArgumentExceptionOccurs when optionName is empty.
ArgumentNullExceptionOccurs when a provided string is null.

See Also