![]() | IFulltextQueryTDocumentMetadata Method |
Namespace: SphinxConnector.FluentApi
using (IFulltextSession fulltextSession = fulltextStore.StartSession()) { var results = fulltextSession.Query<Product>(). Match("a product"). Metadata(out QueryMetadata metadata). ToList(); }
using (IFulltextSession fulltextSession = fulltextStore.StartSession()) { var results = fulltextSession.Query<Product>(). Match("a product"). Metadata(out QueryMetadata resultsMetadata). ToFutureList(); var facets = fulltextSession.Query<Product>(). Match("a product"). GroupBy(p => p.CategoryId). Select(p => new { p.CategoryId, Count = Projection.Count() }). Metadata(out QueryMetadata facetsMetadata). ToFutureList(); 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 //... } }