Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting ctx._parent in CouchDB-River #1300

Closed
reihu opened this issue Sep 4, 2011 · 1 comment
Closed

Support setting ctx._parent in CouchDB-River #1300

reihu opened this issue Sep 4, 2011 · 1 comment

Comments

@reihu
Copy link

reihu commented Sep 4, 2011

It's already possible to set ctx._type in river-scripts to specify the type on a per-document base.
This feature seems to be missing for the _parent field which makes it kind of difficult to implement hierarchy-based searches when using CouchDB-River.

@kimchy kimchy closed this as completed in 847b10d Sep 4, 2011
@Ganican
Copy link

Ganican commented Mar 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants