 | 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.4.1
Syntaxpublic TimeSpan MaxQueryTime { get; set; }
Public Property MaxQueryTime As TimeSpan
Get
Set
Property Value
Type:
TimeSpanThe 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