介绍 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
!!