wlphp

介绍  https://blog.csdn.net/andyzhaojianhui/article/details/75195296

创建语句

{
"company":{
    "properties":{
        "company_name":{
            "type":"string",
            "index":"not_analyzed"
        },
        "company_id":{
            "type":"integer",
            "fields":{
                "sort":{
                    "type":"integer",
                    "index":"not_analyzed"
                }
            }
        }
    }
}
}

搜索条件

{
"from": 0,
"size": 200,
"query": {
    "bool": {
        "must": {
            "wildcard": {
                "company_name": "*盘石*"
            }
        }
    }
},
"size":100,
"sort":[ { "company_id" : "asc" }]
}

 批量从Mysql 添加到索引  Python实现

https://gitee.com/bandung/PythonImportes.git

开箱即用的安装

https://code.aliyun.com/yymmhh/es_search.git

!!

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2021-07-22
  • 2021-12-04
  • 2021-12-19
  • 2022-12-23
  • 2021-12-05
  • 2021-09-17
  • 2021-09-20
猜你喜欢
  • 2021-05-24
  • 2021-08-18
  • 2021-12-06
  • 2022-12-23
  • 2021-04-19
  • 2021-08-27
相关资源
相似解决方案