aparo / pyes

Python connector for ElasticSearch - the pythonic way to use ElasticSearch
BSD 3-Clause "New" or "Revised" License
606 stars 269 forks source link

es.mappings broken #393

Closed JoeZ99 closed 10 years ago

JoeZ99 commented 10 years ago

in https://github.com/aparo/pyes/blob/master/pyes/es.py#L541

    @property
    def mappings(self):
        if self._mappings is None:
            self._mappings = Mapper(self.get_mapping(indices=self.default_indices),
                                    connection=self,
                                    document_object_field=self.document_object_field)

a supposed `self.get_mapping()``` method that doesn't exist is called.

maybe it should be `self.indices.get_mapping()``` ?