Suppose I have the following index definition:
public class LastSuspensions: AbstractIndexCreationTask<Casino, LastSuspensions.ReduceResult> { public class ReduceResult { public string CityId { get; set; } public DateTime DateTime { get; set; } public string CasinoId { get; set; } public IList<Exemption> Exemptions { get; set; } } public LastSuspensions() { Map = casinos => from casino in casinos from suspension in casino.Suspensions select new { CityId = casino.CityId, DateTime = suspension.DateTime, CasinoId = casino.Id, Exemptions = suspension.Exemptions }; Store(x => x.CityId, FieldStorage.Yes); Store(x => x.DateTime, FieldStorage.Yes); Store(x => x.CasinoId, FieldStorage.Yes); Store(x => x.Exemptions, FieldStorage.Yes); }
Is there a way to indicate that I want the Exemptions collection to be sorted by one of its properties?
source share