如何改变Elasticsearch 1.4中嵌套对象的types

目前,我的映射看起来像这样。

hal: { properties: { debug: { type: "string", fields: { raw: { type: "string", index: "not_analyzed" } } }, label: { type: "string", fields: { raw: { type: "string", index: "not_analyzed" } } }, score: { type: "double" }, sentiment: { type: "double" }, type: { type: "string", index: "not_analyzed" } } }, 

但是从我的研究,我需要它是nestedtypes,否则我不能使用termrange的组合,因为元素是平坦的。 我似乎无法find任何有关如何更改映射types的文档。

我怎么做? 我正在使用JavaScript elasticsearch npm模块。