set doc id in js
Merge branch 'master' of git://github.com/MageHack/elasticmage