liberation / django-elasticsearch

Simple wrapper around elasticsearch-py to index/search a django Model.
MIT License
212 stars 73 forks source link

Allow to set a different doc_type per model #5

Closed lauxley closed 9 years ago

lauxley commented 9 years ago

By adding a doc_type attribute in the Elasticsearch class and use it in get_doc_type method, just like the index attribute.

The problem was mentioned in #4.

lauxley commented 9 years ago

@NicolasYDDER just for your information, I added a doc_type attribute on the Elasticsearch class in the feature/add-doctype-attr branch, the tests are still passing so you are safe to use it. I will not merge it until I add a test for this functionality and update the docs though.

lauxley commented 9 years ago

21ab475e70ea59269aa12058d216383873a1ab89

still needs docs/tests