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!
看起来我在寻找“ putMapping”功能。
elastical.putMapping(index, type, {'type': {'properties': {"coords" : {"type" : "geo_point", "store": "yes"}}}}, function(e,r){});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.