--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have a situation where I need convert an existing document property (bool?) to another complex type (object with properties name and value). The property will have the same name but the structure needs to be changed to the new type. The related code entity's type has already been changed to the new complex type. A successful approach in accessing the original document value and evaluation can be done using a combination of ScriptedPatchRequest along with multiple PatchRequests to create and rename a temporary field and remove the old one works. It's just pretty clunky. It would be an advantage to get access directly to original field value and perform the evaluation prior to building up the new element and just modify the original field. Attempting to use LuceneQuery<dynamic> to return a dynamic type for evaluation in order to access the original document fails if the original Raven document value is set to true or false. A null, of course, is fine. Is there a more concise way to achieve the conversion?
--