public static void PopulateRenunciation(this IDocumentStore ds)
{
ds.DatabaseCommands.PutIndex("RenunciationById", new IndexDefinitionBuilder<Renunciation>
{
Map = renunciations => from renunciation in renunciations
select new { renunciation.Id },
Indexes =
{
{ x => x.Id, FieldIndexing.Analyzed}
}
});
}