elasticsearch/elasticsearch-river-couchdb — pull request #33 by vdemin (2013-08-15 11:01:27+00:00)
Title: Support for changing id via script

I know two ways to change id.

1. The simply way:

```
"script": "ctx.id = ctx.doc._id = ctx.doc.new_id;"
```

2. Associate the _id mapping with a path:

```
{
"mappings": {
"my_type": {
"_id": {"path": "new_id"},
}
}
}
```

and set id to null:
```
"script": "ctx.id = ctx.doc._id = null;"
```

But in both cases a river doesn't change id keeping it always as the couchdb's id.

This patch fixed the issue.