[Golang] Define mapping when creating an index on Elasticsearch by Golang.

Mình có sử dụng Golang để create index trên elasticsearch. Giờ chúng ta mổ sẻ từng bổ phần nhỏ “mappings”: “properties”: “type”: “date”: Specifies that the field will store date values. “City”: This is the name of the field in Elasticsearch.map[string]interface{}: This is a Go map, where the key is a string and the value … Continue reading [Golang] Define mapping when creating an index on Elasticsearch by Golang.