Does multi map/reduce work in RavenDb?

吃可爱长大的小学妹 提交于 2019-12-05 16:18:20

The reduce part of your index is wrong in the fields Foo and Bar.

In the first Map function you're setting Foo and Boo to null as the structure for the output of all Map functions has to be the exactly the same in a MultiMap Index. You have to use FirstOrDefault() instead of First()

Foo = g.Select(x => x.Foo).Where(x => x != null).FirstOrDefault(),
Bar = g.Select(x => x.Bar).Where(x => x != null).FirstOrDefault(),
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!