es之索引

1、添加映射

使用curl -XPUT 'localhost:9200/library/_mapping' -d @structured_mapping.json  -H "Content-Type:application/json"。

对于映射中存在数组时,使用"field":{"properties":{}}形式

对于映射中存在对象时,使用"field":{"type":"object", "properties":{}}

猜你喜欢

转载自blog.csdn.net/wuli2496/article/details/115429413