Es

1,接触Es查询数量限制

 

localhost:9200/product/_settings  PUT

{
  "index.max_result_window":200000
}
 
 
2,设置索引逗号拆分
 
localhost:9200/product/   GET
 
{
    "settings": {

        "analysis": {

            "analyzer": {

                "comma": {

                     "type": "pattern",

                     "pattern":","

                    }

                }

            }

        }

    }
 
3,给字段设置分词方式  POST
localhost:9200/product/_mapping/record?include_type_name=true
 
{

    "properties": {

    "id": { "type": "string", "index": "not_analyzed" },

    "areaIdSalias": { "type": "string", "analyzer": "comma", "search_analyzer": "comma" }

    }
}
 
 
 
posted @ 2022-11-22 18:59  打代码的小超人  阅读(155)  评论(0编辑  收藏  举报