Click or drag to resize

SphinxSearchOptionsMaxQueryTime Property

Gets or sets the maximum time for a query. This value is applied per index. Default is MaxValue which means no limit.

Namespace:  SphinxConnector.NativeApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.3.0
Syntax
public TimeSpan MaxQueryTime { get; set; }

Property Value

Type: TimeSpan
The maximum time for a query.
Remarks
This value is handled as an integer by Sphinx. That means if you e.g. set the max query time to value shown below, the .5 part will be cut off.
SphinxClient sphinxClient = new SphinxClient();
sphinxClient.SearchOptiions.MaxQueryTime = TimeSpan.FromMilliseconds(100.5)
See Also