摘要: 记一次嵌套sum聚合的排序DSL 场景:根据nested_gs2Entity.kw_entity聚合,filter对聚合结果过滤类型是产品,实体是需要关心的产品列表,在结果中sum互动量long_interaction,和花费long_paidPrice 然后在结果中根据sum的结果排序 { "ag 阅读全文
posted @ 2023-09-05 17:31 Joke科 阅读(57) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/wHz0uL_LEe4OgLsSFGEZEg 阅读全文
posted @ 2019-09-24 17:07 Joke科 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 供网关调用 class FileDownloadService @Autowired private ApplicationContext applicationContext; private IDownloadService downloadService; //获取具体的实现类 downloa 阅读全文
posted @ 2019-05-22 15:52 Joke科 阅读(132) 评论(0) 推荐(0) 编辑
摘要: IOrderDomainService给网关调用,接收一个参数orderType,比如createOrder(CreateOrderRequest req) class OrderDomainService public CreateOrderResult createOrder(CreateOrd 阅读全文
posted @ 2019-05-22 14:40 Joke科 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 1 @Autowired 2 private ElasticsearchTemplate esTemplate; 3 4 @Override 5 public boolean updateDoc(CustomerDoc doc) { 6 UpdateRequest updateRequest = new UpdateRequest()... 阅读全文
posted @ 2019-04-03 13:40 Joke科 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: 父类Service服务接口 父类abstract class Service interface Service impl model modelDoc Config Respository spring-elasticsearch.xml index-item-setting.json index 阅读全文
posted @ 2019-03-14 18:45 Joke科 阅读(761) 评论(1) 推荐(0) 编辑
摘要: 1 public Boolean importExcel(String path, Long storeId, String storeName, Long userId, String userName) { 2 this.store = storeId; 3 this.storeName = s 阅读全文
posted @ 2019-03-12 18:58 Joke科 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: 提供者 pom.xml 导入依赖jar包 applicationContext.xml 文件中导入rabbitMQ 1 <import resource="classpath:spring-rabbit.xml"/> spring-rabbit.xml 文件 1.连接工厂 MQ的配置 2.vhost 阅读全文
posted @ 2019-03-03 18:17 Joke科 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 顶级接口 父类(顶级接口实现类) 子类接口 子类实现 阅读全文
posted @ 2019-03-03 17:46 Joke科 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.applicationContext.xml中开启注解扫描 <context:component-scan base-package="com.lcb,com.lcb.soa.store.item" /> 2.自定义注解 3.定义切面类 4.Method上使用自定义注解 AOP中pointcut 阅读全文
posted @ 2019-02-27 10:25 Joke科 阅读(1841) 评论(0) 推荐(0) 编辑