1 个回答
Elasticsearch创建自定义mapping的实力如下:
PUT my_index
{
"settings" : {
"number_of_shards" : 5,
"number_of_replicas" : 1
}
"mappings": {
"_doc": {
"properties": {
"title": { "type": "text" },
"name": { "type": "text" },
"age": { "type": "integer" },
"created": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
}
}
}
}
}
发布于:1年前 (2024-04-02) IP属地:四川省
我来回答
您需要 登录 后回答此问题!