Click or drag to resize

IFulltextSessionQueryFutureAsyncTDocument, TResult Method (IPreparedQueryTDocument, TResult, CancellationToken)

Get an asynchronously, lazily initialized list of results for the provided prepated query instance. Accessing the results will trigger the execution of all pending future results as a batch of asynchronous queries in a single roundtrip to searchd.

Namespace:  SphinxConnector.FluentApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.3.0
Syntax
Lazy<Task<IList<TResult>>> QueryFutureAsync<TDocument, TResult>(
	IPreparedQuery<TDocument, TResult> preparedQuery,
	CancellationToken cancellationToken
)

Parameters

preparedQuery
Type: SphinxConnector.FluentApi.PreparedQueriesIPreparedQueryTDocument, TResult
The prepared query instance to schedule for execuction.
cancellationToken
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Type Parameters

TDocument
The type of document to execute a prepared query for.
TResult
The type of the result to return.

Return Value

Type: LazyTaskIListTResult
A lazily initialized list of results for the query.
A task representing the asynchronous operation.
See Also