Open pziemkowski opened 10 years ago
ElasticUtils doesn't (yet) have any code to create indexes. The get_mapping suggestion is there to give you some of the scaffolding you need to set up the code for creating an index with specified mappings.
Just got caught by this... It would be nice to add something in the doc about it, not sure where to put it though. I would rather add it in the method's doc... Hint anyone ?
Yeah, I spend too much time figuring out why my geo_point type is not created as such, basically right now it picks it up from ORM and not from mappings . Basically extract_document() in elasticutils.contrib.django.tasks.index_objects can only infer core types and not geo_point type for example
I'm writing a django app and would like to create some mappings using class extending
Indexable
andMappingType
helpers. The problem is that get_mapping method is never called. I have checked the source code of those helpers and can't find any line that would lead to this call. Maybe I am doing something wrong?Here's the definition of my get_mapping: