摘要: margin <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" cont 阅读全文
posted @ 2022-03-20 23:53 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: version: "3.9" volumes: data: external: false config: external: false plugins: external: false kibana: external: false networks: demo: name: demo exte 阅读全文
posted @ 2022-03-20 22:28 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Single Node: cluster.name: vagrant-cluster node.name: vagrant #node.attr.rack: r1 #path.data: /path/to/data #path.logs: /path/to/logs #bootstrap.memor 阅读全文
posted @ 2022-03-20 22:24 ascertain 阅读(171) 评论(0) 推荐(0) 编辑
摘要: # 增量更新 POST wares/_update/1/ { "doc":{ "id":3 } } # 查看mapping get wares/_mapping 阅读全文
posted @ 2022-03-20 19:08 ascertain 阅读(144) 评论(0) 推荐(0) 编辑
摘要: # 指定 _id 查询 get wares/_doc/1 # 查询所有 get wares/_search { "query":{ "match_all": {} } } # 指定 term get wares/_search { "query":{ "term":{ "description":{ 阅读全文
posted @ 2022-03-20 19:01 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要: # tokenizer put /orders { "settings":{}, "mappings":{ "properties":{ "title":{ "type":"text", "analyzer":"standard" } } } } put /orders/_doc/1 { "titl 阅读全文
posted @ 2022-03-20 18:56 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Aggregation可不指定查询条件, 默认查询所有 求和: 以price进行分组 # 以price进行分组 get vanilla/_search { "query":{ "match_all": {} }, "aggs":{ "group_price":{ "terms": { "field" 阅读全文
posted @ 2022-03-20 18:50 ascertain 阅读(103) 评论(0) 推荐(0) 编辑
摘要: from fastapi import FastAPI, Request, Response, Header, Body, Form, Cookie from fastapi.responses import JSONResponse, ORJSONResponse, FileResponse, H 阅读全文
posted @ 2022-03-20 16:06 ascertain 阅读(709) 评论(0) 推荐(0) 编辑