Mapping映射
自动或手动为index中的_doc建立一种数据结构和相关配置
动态映射:dynamic mapping,自动为我们建立index,以及对应的mapping,mapping中包含了每个field对应的数据类型,以及如何分词等设置。
PUT /web_site/_doc/1
{
"post_date": "2023-01-01",
"title" : "The longer",
"content":"The longer she endured the pain",
"author_id": 1111
}
PUT /web_site/_doc/2
{
"post_date": "2023-01-02",
"title" : "The longer title",
"content":"The longer she endured the paipppn",
"author_id": 1113
}
PUT /web_site/_doc/3
{
"post_date": "2023-01-03",
"title" : "The longer title endured",
"content":"The longer she endured title the paipppn",
"author_id": 1113
}
标签:01,longer,映射,title,doc,Mapping,Elasticsearch,endured
From: https://www.cnblogs.com/l-zl/p/18084767