搜索

Es


发布时间: 2022-11-24 21:05:01    浏览次数:69 次

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" }

    }
}
 
 
 
免责声明 Es,资源类别:文本, 浏览次数:69 次, 文件大小:-- , 由本站蜘蛛搜索收录2022-11-24 09:05:01。此页面由程序自动采集,只作交流和学习使用,本站不储存任何资源文件,如有侵权内容请联系我们举报删除, 感谢您对本站的支持。 原文链接:https://www.cnblogs.com/feathe/p/16916135.html