Setting up parent relationship

I used the following script to set parent for my couchdb doc with a field
"parent":

if(ctx.doc.parent) ctx._parent = ctx.doc.parent

But some how I didnt see any field "_parent" in the actual index. Is the
above script right syntax?

Thanks.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.