I am just running the following index from management console app. This will create distinct index for the fieds specified.
My database is huge, so far 2 million unique rows have been created. But getting that error... why ?
map:
from doc in docs.Rolls
from docRollIndexListItem in (IEnumerable<dynamic>)doc.RollIndexList from docBookIndexListItem in (IEnumerable<dynamic>)doc.BookIndexList
select new {DocumentType = docRollIndexListItem.Index.DocumentType, Year = docBookIndexListItem.Index.Year, Month = docBookIndexListItem.Index.Month, Day = docBookIndexListItem.Index.Day, Title = docBookIndexListItem.Index.Title}
reduce:
from result in results
group result by new {result.DocumentType, result.Year, result.Month, result.Day, result.Title} into g
select new { g.Key.DocumentType, g.Key.Year, g.Key.Month, g.Key.Day, g.Key.Title}