curl -XPOST 'http://127.0.0.1:9200/test_product' -d '
{
"settings": {
"number_otb_shards": 3,
"number_otb_replicas": 0,
"index.refresh_interval": "10s",
"index.translog.flush_threshold_ops": "100000"
},
"mappings": {
"product": {
"properties": {
"id": {
"type": "long",
"index": "not_analyzed"
},
"tb_productname": {
"type": "string",
"index": "analyzed",
"term_vector": "with_positions_offsets",
"analyzer": "ik",
"boost": 5
},
"tb_filterkeyword": {
ES创建索引
最新推荐文章于 2024-04-27 09:48:32 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)