diff --git a/elastic/service_test.go b/elastic/service_test.go index b36496ffc0e3a42f17471ed01e7099ea7bd0ca02..566ba4079f8adb3d9ad5623ecdde5418b707086b 100644 --- a/elastic/service_test.go +++ b/elastic/service_test.go @@ -69,15 +69,15 @@ func testGetListSearchAfter() { Condition:q,//æœç´¢æ¡ä»¶ IndexName: "goods_app_index_test",//索引åç§° SearchAfter:&SearchAfter{ - SortField: struct { //æ»šåŠ¨å¼æŸ¥è¯¢éœ€æŽ’åºæ•°æ® - Field string `json:"field"`//排åºå—段åç§° éœ€æŒ‡å®šæ•°å€¼åž‹å—æ®µ 例如商å“Id - Sort bool `json:"sort" `//æ£åº true å€’å™ false - }{ - "id",//商å“Id - true,//æ£åº - }, Value: 0,//从商å“Id大于0开始查询 }, + SortField: struct { //æ»šåŠ¨å¼æŸ¥è¯¢éœ€æŽ’åºæ•°æ® + Field string `json:"field"`//排åºå—段åç§° éœ€æŒ‡å®šæ•°å€¼åž‹å—æ®µ 例如商å“Id + Sort bool `json:"sort" `//æ£åº true å€’å™ false + }{ + "id",//商å“Id + true,//æ£åº + }, }) //å¾ªçŽ¯åˆ—è¡¨æ•°æ® for _, hit := range res.Hits.Hits {