![]() | IFulltextQueryTDocumentToFutureList Method |
Namespace: SphinxConnector.FluentApi
using (IFulltextSession fulltextSession = fulltextStore.StartSession()) { var results = fulltextSession.Query<Product>(). Match("a product"). ToFutureList(); var facets = fulltextSession.Query<Product>(). Match("a product"). GroupBy(p => p.CategoryId). Select(p => new { p.CategoryId, Count = Projection.Count() }). ToFutureList(); //No query has been executed up to this point foreach (result in results.Value) //<-- accessing the result of a query will cause all pending future queries { //to be executed in one roundtrip to Sphinx at this point //... } }