Setting up parent relationship

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

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?


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
For more options, visit