摘要: xlsxNews := excelize.NewFile()xlsxNews.SetSheetRow("sheet1", "A1", &[]interface{}{ "publishDate", "newsId", "title"}, )r.Response.Header().Set("Conten 阅读全文
posted @ 2022-12-08 18:21 小酥肉是我 阅读(18) 评论(0) 推荐(0) 编辑
摘要: (\d+[-/]\d+[-/]\d+)|\d+[-|年|/][\d+][-|月|/]\d+[月|日]|\d+[^年]+年可匹配类型:2021年01月31日2021-01-312021/01/312021年2021年1-6月 阅读全文
posted @ 2022-02-16 09:53 小酥肉是我 阅读(174) 评论(0) 推荐(0) 编辑
摘要: { "_source": [ "DATE", "NEWS_ID", "COMPSCORELIST" ], "query": { "bool": { "must": [ { "range": { "DATE": { "from": "2021-09-25T00:00:00+08:00", "inclu 阅读全文
posted @ 2021-11-16 10:05 小酥肉是我 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: { "query": { "nested": { "path": "COMPSCORELIST", "query": { "bool": { "must": { "exists": { "field": "COMPSCORELIST" } } } } } } } 阅读全文
posted @ 2021-11-13 16:17 小酥肉是我 阅读(887) 评论(0) 推荐(0) 编辑
摘要: PUT http://ip:port/esindex/_mapping { "properties": { "COMPSCORELIST": { "type": "nested", "properties": { "COMPNAME": { "type": "keyword" }, "SCORE": 阅读全文
posted @ 2021-11-04 11:30 小酥肉是我 阅读(457) 评论(0) 推荐(0) 编辑
摘要: { "aggregations": { "groupDate": { "aggregations": { "riskTag": { "terms": { "field": "COMPANY_SECOND_RISK_TAGS", "include": "瑞幸咖啡\\(北京\\)有限公司.*", // 阅读全文
posted @ 2021-11-02 17:50 小酥肉是我 阅读(135) 评论(0) 推荐(0) 编辑
摘要: package main import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/go-playground/validator/v10" ) func TopicUrl(f1 valida 阅读全文
posted @ 2020-09-10 19:26 小酥肉是我 阅读(689) 评论(0) 推荐(0) 编辑
摘要: // 调用 func CallSearchFillingInfos(UA string,req *request.SearchDocRequest) response.SearchDocResponse { b, err := json.Marshal(req) FillingReq, _ := h 阅读全文
posted @ 2020-07-23 14:04 小酥肉是我 阅读(611) 评论(0) 推荐(0) 编辑
摘要: A := strset.NewWithSize(0) A.Add("a","b","c","d") B := strset.NewWithSize(0) B.Add("a","d","e","c") unionSet :=strset.NewWithSize(0) //交集 intersection 阅读全文
posted @ 2020-07-15 14:36 小酥肉是我 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 减少开销 提高效率 现有130万条数据 一条一条索引的话需要不停的跑需要两天左右 如果使用bulk 五分钟就完事儿了 func IndexPrice() { es := tool.ES{ Index: "financials.us.gama", Type: "esstockprice", } var 阅读全文
posted @ 2020-06-05 11:53 小酥肉是我 阅读(3705) 评论(0) 推荐(1) 编辑