I've been digging through the Elastical source trying to figure out how to set a Core Type when creating an index. Specifically, I need to set a field as a geo_point field.
In Mongoosastic I just set the es_type field on my schema, but I can't figure out how to do the equivalent in Elastical.
Thanks!
Looks like I was looking for the "putMapping" function.
elastical.putMapping(index, type, {'type': {'properties': {"coords" : {"type" : "geo_point", "store": "yes"}}}}, function(e,r){});