讓我們想象一下,我有以下指標定義:指定索引文檔集合整理
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);
}
有什麼辦法可以指定我想獲得豁免徵收由它的一個屬性進行排序?
有一定的成本,如果集合是很大,所以我想知道是否有可能使它的服務器 – SiberianGuy 2011-12-30 10:32:22