摘要:
# 指定 _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
阅读(52)
评论(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
阅读(34)
评论(0)
推荐(0)
摘要:
Aggregation可不指定查询条件, 默认查询所有 求和: 以price进行分组 # 以price进行分组 get vanilla/_search { "query":{ "match_all": {} }, "aggs":{ "group_price":{ "terms": { "field" 阅读全文
posted @ 2022-03-20 18:50
ascertain
阅读(111)
评论(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
阅读(759)
评论(0)
推荐(0)