Live projection deserialization of complex object works for regular query but not for lucene query (failing test attached)

38 views
Skip to first unread message

Tobias Sebring

unread,
Aug 12, 2012, 6:48:37 AM8/12/12
to rav...@googlegroups.com
The attached test shows how deserialization of a live projection made up of complex (multi level objects) fail when queried through lucene query but works for regular queries.

Is it a coding error on my part, a bug in RavenDb or by design? I'm aware that this is not a great way to build an index and this code is not something I'm currently using but I'm interested learning why this is not working.

Here is an old thread that discusses deserialization of multi level projections with the conclusion that they are now supported in RavenDb:

This is on RavenDb 1.2.2051-Unstable.
JsonDeserialization.cs

Oren Eini (Ayende Rahien)

unread,
Aug 12, 2012, 7:00:27 AM8/12/12
to rav...@googlegroups.com
.SelectFields<Data_Search.ProjectionResult>()

Changes the way we process the query.

.SelectFields<Data_Search.ProjectionResult>(new string[0])
Is how you should do it.

Tobias Sebring

unread,
Aug 12, 2012, 7:10:55 AM8/12/12
to rav...@googlegroups.com
That works, thanks!
Reply all
Reply to author
Forward
0 new messages