摘要: 基本查询,q表示关键字,df为不指定字段的默认字段,sort时间排序,from和size表示分页和每页大小,timeout为超时时间 GET /movies/_search?q=2012&df=title&sort=year:desc&from=0&size=10&timeout=1s 带profi 阅读全文
posted @ 2021-01-25 20:46 lovelifest 阅读(58) 评论(0) 推荐(0) 编辑
摘要: IK分词器 各平台配置IK分词器 elasticsearch-analysis-ik releases:https://github.com/medcl/elasticsearch-analysis-ik/releases Windows:在elasticsearch安装目录中的plugins目录内 阅读全文
posted @ 2021-01-25 15:31 lovelifest 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 基本curd post请求 post请求不带id,会自动生成id POST st_test_2021_01_25/_doc { "user" : "zhangsan", "post_data" : "2021-01-25", "message" : "zhangsan try to create" 阅读全文
posted @ 2021-01-25 15:03 lovelifest 阅读(50) 评论(0) 推荐(0) 编辑