Objects don’t actually get indexed. Since you are saving an object to data.owner, it is not being indexed, and only data.test1, data.tes2, data.test3 are being included.
Question: why are you Geting the user to save in the Car? Usually, you just save the Ref. E.g.
I was just trying to avoid N + 1 requests and unique with reference.
Saving Ref not working the index unique (owner:ref, test1:‘ok’),so i trying with Get.
If you want to save a copy of the user data you can still do that. To make the unique index work, you can use a binding and use the binding as a term.
The binding would be a simple scalar field taken from the user ref, that is, the ID value, which can then be used as a unique identifier for the index.