mapping

https://www.elastic.co/guide/en/elasticsearch/reference/6.3/mapping.html

  1. PUT test
  2. {
  3. "settings" : {
  4. "number_of_shards" : 1,
  5. "number_of_replicas" : 1
  6. },
  7. "mappings" : {
  8. "_doc" : {
  9. "properties" : {
  10. "field1" : { "type" : "text" }
  11. }
  12. }
  13. }
  14. }

Dynamic Mapping

https://www.elastic.co/guide/en/elasticsearch/reference/6.3/dynamic-mapping.html

文档更新时间: 2019-07-09 11:03   作者:admin