ChristopherRabotin / bungiesearch

UNMAINTAINED CODE -- Elasticsearch-dsl-py django wrapper with mapping generator
BSD 3-Clause "New" or "Revised" License
67 stars 20 forks source link

Bungiesearch support for ES2.0+ #148

Open jjhuang opened 8 years ago

jjhuang commented 8 years ago

Hi, are there plans for a version of Bungiesearch that supports ES2.x? I've attempted to run Bungiesearch on the latest Elasticsearch (2.2.1) and have identified a few minor fixes that need to be made to support this (though there's possibly more):

As far as I can tell, the above two changes were the "main" things that prevent Bungiesearch from being compatible with both the newer Elasticsearch server as well as newer versions of elasticsearch-dsl.

I originally planned to make this PR, but discovered that all the Bungiesearch tests failed completely due to the new 2.0 restriction where types that exist in the same index can no longer have fields with the same name IF the mappings are different. In the tests, there are numerous models that share fields such as description, title or updated yet use differing mappings. So, either the mappings need to be unified or the field names have to be changed. I'm not too keen about submitting a PR that hacks up the test files especially since I don't have full knowledge of the intended coverage.

Thanks!