摘要:
xlsxNews := excelize.NewFile()xlsxNews.SetSheetRow("sheet1", "A1", &[]interface{}{ "publishDate", "newsId", "title"}, )r.Response.Header().Set("Conten 阅读全文
摘要:
(\d+[-/]\d+[-/]\d+)|\d+[-|年|/][\d+][-|月|/]\d+[月|日]|\d+[^年]+年可匹配类型:2021年01月31日2021-01-312021/01/312021年2021年1-6月 阅读全文
摘要:
{ "_source": [ "DATE", "NEWS_ID", "COMPSCORELIST" ], "query": { "bool": { "must": [ { "range": { "DATE": { "from": "2021-09-25T00:00:00+08:00", "inclu 阅读全文
摘要:
{ "query": { "nested": { "path": "COMPSCORELIST", "query": { "bool": { "must": { "exists": { "field": "COMPSCORELIST" } } } } } } } 阅读全文
摘要:
PUT http://ip:port/esindex/_mapping { "properties": { "COMPSCORELIST": { "type": "nested", "properties": { "COMPNAME": { "type": "keyword" }, "SCORE": 阅读全文
摘要:
{ "aggregations": { "groupDate": { "aggregations": { "riskTag": { "terms": { "field": "COMPANY_SECOND_RISK_TAGS", "include": "瑞幸咖啡\\(北京\\)有限公司.*", // 阅读全文
摘要:
package main import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/go-playground/validator/v10" ) func TopicUrl(f1 valida 阅读全文
摘要:
// 调用 func CallSearchFillingInfos(UA string,req *request.SearchDocRequest) response.SearchDocResponse { b, err := json.Marshal(req) FillingReq, _ := h 阅读全文
摘要:
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 阅读全文
摘要:
减少开销 提高效率 现有130万条数据 一条一条索引的话需要不停的跑需要两天左右 如果使用bulk 五分钟就完事儿了 func IndexPrice() { es := tool.ES{ Index: "financials.us.gama", Type: "esstockprice", } var 阅读全文