原创 java8 function 實現 retry

通過java8 的 function 實現 retry 可以通過參數配置 retry的次數、時間間隙、和所有嘗試都失敗後的拋出異常。 package com.river.reytry; import java.util.function.

原创 git commit 格式

feat:新功能(feature) fixed:修補bug docs:文檔(documentation) style: 格式(不影響代碼運行的變動) refactor:重構(即不是新增功能,也不是修改bug的代碼變動) test:增加測試

原创 dynamic-field-mapping

如果沒有指定字段的 mapping es 會自動創建mapping,按照如下的規則 參考地址 https://www.elastic.co/guide/en/elasticsearch/reference/7.1/dynamic-fie

原创 ES match query match_phrase 區別

通過profile 查看es 是如何對 match query 進行查詢的 POST movies/_search { "profile": true, "query": { "match": { "title"

原创 測試分詞

備註下 es 的查看分詞效果 指令 #查看不同的analyzer的效果 #standard GET _analyze { "analyzer": "standard", "text": "2 running Quick brown-

原创 cerebro - ES web 監控工具

cerebro is an open source(MIT License) elasticsearch web admin tool built using Scala, Play Framework, AngularJS and Boo

原创 違規檢測

OSS違規檢測 內容安全通過人工智能技術鑑別OSS中的違規圖片,幫助您減少90%以上審覈人力,有效降低涉黃涉政風險。 https://help.aliyun.com/document_detail/28423.html?spm=a2c4e.

原创 用戶滿意度/ Apdex分數

Apdex tracks three response counts: Satisfied: The response time is less than or equal to T. Tolerating: The response ti

原创 sql update 時候使用left join 和groupby

這裏直接備註我的demo 吧 update card_crowd as cardCrowd LEFT JOIN ( select cc.id , count(1) as num from card_crowd cc LEFT JOIN c

原创 es配置報錯expected '<document start>'

D:\my-program\elasticsearch-6.3.2\bin>elasticsearch.bat Exception in thread "main" 2019-07-02 18:02:44,006 main ERROR No

原创 es備份與恢復 on windows local file system

es的備份和恢復是非常方便的 這裏就給大家演示下 我es的index 如下 查看index的mapping GET test_customer1*/_mapping { "test_customer1": { "mapping

原创 left join時候 應該用on還是where

同事問 left join 時候的條件應該放到 on 後面還是 where 後面 其實這兩個的執行結果是不一樣的。 來個例子證明下。 建表語句和數據 create table a(f1 int, f2 int, index(f1))engi

原创 微信小程序-上傳文件 (chooseMessageFile)

微信小程序有 wx.chooseImage 方法選擇圖片,但是想選擇文件,chooseFile這種接口卻沒有提供。 還好提供了其它方法 wx.chooseMessageFile 此方法可以選擇微信消息中的文件 效果如下 到微信的消息欄

原创 mysql 時間戳最大值

mysql 時間戳最大值只能到 2038-01-19 03:14:07 The DATE type is used for values with a date part but no time part. MySQL retrieves

原创 微信小程序 -- 更新

小程序更新機制 未啓動時更新 開發者在管理後臺發佈新版本的小程序之後,如果某個用戶本地有小程序的歷史版本,此時打開的可能還是舊版本。微信客戶端會有若干個時機去檢查本地緩存的小程序有沒有更新版本,如果有則會靜默更新到新版本。總的來說,開發者