elasticsearch mapping

该文档展示了如何配置Elasticsearch索引,包括副本数量、分片数量、刷新间隔等参数。同时,详细定义了文档中的字段类型,如text、float、geo_point等,并使用了ik_max_word分析器进行中文文本处理。此外,还涉及到了日期格式和地理位置的数据存储。
摘要由CSDN通过智能技术生成

http://192.168.10.22:9200/enterprise_library_search

{
    "settings": {
        "index": {
            "number_of_replicas": "1",
            "number_of_shards": "12",
            "refresh_interval": "60s",
            "translog": {
                "durability": "async",
                "flush_threshold_size": "1024mb",
                "sync_interval": "60s"
            }
        }
    },
    "mappings": {
        "doc": {
            "properties": {
                "address": {
                    "analyzer": "ik_max_word",
                    "type": "text"
                },
                "category_new": {
                    "type": "text"
                },
                "eid": {
                    "type": "keyword"
                },
                "format_name": {
                    "analyzer": "ik_max_word",
                    "fields": {
                        "ik": {
                            "analyzer": "ik_max_word",
                            "type": "text"
                        },
                        "keyword": {
                            "ignore_above": 256,
                            "type": "keyword"
                        }
                    },
                    "search_analyzer": "ik_smart",
                    "type": "text"
                },
                "gd_latitude": {
                    "type": "float"
                },
                "gd_location": {
                    "type": "geo_point"
                },
                "gd_longitude": {
                    "type": "float"
                },
                "latitude": {
                    "type": "float"
                },
                "location": {
                    "type": "geo_point"
                },
                "minor_enterprises": {
                    "type": "keyword"
                },
                "oper_name": {
                    "analyzer": "ik_max_word",
                    "type": "text"
                },
                "regist_capi_new": {
                    "type": "float"
                },
                "rf": {
                    "type": "float"
                },
                "start_date": {
                    "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis",
                    "type": "date"
                },
                "yiliaobx_num": {
                    "type": "long"
                }
            }
        }
    }
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值