You can clone with
elasticutils currently doesn't do much on the indexing side of things. There are a few possible answers on how to solve this that have been implemented and are lying around in the various elasticutils uses.
django-haystack has an approach that I like. In 2.0, they create a SearchIndex class that works much like Django models. This has two interesting effects:
It allows us to nix the implicit relationship between Django models and the documents that are indexed.
It allows us to more easily specify a mapping with defaults that are sane.
Rob is working on this right now in https://github.com/robhudson/elasticutils/tree/declarative-mapping . He's using pyes to do it because it's got a lot of the bits implemented already.
I think we should go through the django-haystack SearchIndex and figure out what bits we want for the elasticutils SearchIndex.
This bug is for continuing and finalizing that work.
Some work-in-progress on this branch. I hope to continue pushing this forward. If you'd like to comment on the commits I'd love the feedback:https://github.com/robhudson/elasticutils/compare/declarative-mapping