I have requirement to query the same document using one of it’s non encrypted field (let’s say by Name). I had set up a secondary index for this field and here is the code
It seems like the transcoder doing the unmarshalling does not have the crypto manager. You’re cluster connection specifies your crypto manager, right? (I suppose it would need to if the results from Get are being decrypted).
Until I can think of a better work-around - you can retrieve the document id (meta().id) with the query, then use the document id in the Get() operations.
Edit 1: I think you can use
transcoder.Decode(resp.Raw().nextBytes, 0, &s);
Edit 2 : I checked with the powers-that-be and FLE is only for KV. Query does not use the transcoder.