0
我一直在挖掘Elastical源,試圖找出在創建索引時如何設置Core Type。具體來說,我需要將字段設置爲geo_point字段。通過彈性設置ElasticSearch geo_point映射器類型(node.js)
在Mongoosastic我只是在我的架構上設置es_type字段,但我無法弄清楚如何做Elastical中的等價物。
謝謝!
我一直在挖掘Elastical源,試圖找出在創建索引時如何設置Core Type。具體來說,我需要將字段設置爲geo_point字段。通過彈性設置ElasticSearch geo_point映射器類型(node.js)
在Mongoosastic我只是在我的架構上設置es_type字段,但我無法弄清楚如何做Elastical中的等價物。
謝謝!
看起來我正在尋找「putMapping」功能。
elastical.putMapping(index, type, {'type': {'properties': {"coords" : {"type" : "geo_point", "store": "yes"}}}}, function(e,r){});