当前位置:网站首页>Es uses collapsebuilder to de duplicate and return only a certain field
Es uses collapsebuilder to de duplicate and return only a certain field
2022-07-05 01:26:00 【talen_ hx296】
duplicate removal
SearchRequest searchRequest = new SearchRequest(esIndices2.toArray(new String[esIndices2.size()]));
// Build search criteria
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder();
// Specify the de duplication field
CollapseBuilder collapseBuilder = new CollapseBuilder("userName.keyword");
searchRequest.source(sourceBuilder.query(boolBuilder).collapse(collapseBuilder).trackTotalHits(true));Specified field
earchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.fetchSource("userName", null)边栏推荐
- Senior Test / development programmers write no bugs? Qualifications (shackles) don't be afraid of mistakes
- College degree, what about 33 year old Baoma? I still sell and test, and my monthly income is 13K+
- Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and mobile phones can also easily read literature
- 如果消费互联网比喻成「湖泊」的话,产业互联网则是广阔的「海洋」
- 微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
- Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
- [development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
- 潘多拉 IOT 开发板学习(RT-Thread)—— 实验4 蜂鸣器+马达实验【按键外部中断】(学习笔记)
- A simple SSO unified login design
- SAP ui5 application development tutorial 106 - how to improve the readability of SAP ui5 application routing URL trial version
猜你喜欢

【海浪建模1】海浪建模的理论分析和matlab仿真

DOM basic syntax

Basic operations of database and table ----- create index

微信小程序:全新独立后台月老办事处一元交友盲盒

There is a new Post-00 exam king in the testing department. I really can't do it in my old age. I have
![Yyds dry goods inventory [Gan Di's one week summary: the most complete and detailed in the whole network]; detailed explanation of MySQL index data structure and index optimization; remember collectio](/img/e8/de158982788fc5bc42f842b07ff9a8.jpg)
Yyds dry goods inventory [Gan Di's one week summary: the most complete and detailed in the whole network]; detailed explanation of MySQL index data structure and index optimization; remember collectio

SAP ui5 application development tutorial 106 - how to improve the readability of SAP ui5 application routing URL trial version

Implementation steps of master detail detail layout mode of SAP ui5 application

Wechat applet: Xingxiu UI v1.5 WordPress system information resources blog download applet wechat QQ dual end source code support WordPress secondary classification loading animation optimization

ROS command line tool
随机推荐
[untitled]
Behind the cluster listing, to what extent is the Chinese restaurant chain "rolled"?
dotnet-exec 0.6.0 released
PHP 约瑟夫环问题
What you learned in the eleventh week
Discrete mathematics: propositional symbolization of predicate logic
微信小程序:独立后台带分销功能月老办事处交友盲盒
Grabbing and sorting out external articles -- status bar [4]
【纯音听力测试】基于MATLAB的纯音听力测试系统
Async/await you can use it, but do you know how to deal with errors?
Intel sapphire rapids SP Zhiqiang es processor cache memory split exposure
PHP wechat official account development
Database postragesq BSD authentication
Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income
Global and Chinese markets of emergency rescue vessels (errv) 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of network connected IC card smart water meters 2022-2028: Research Report on technology, participants, trends, market size and share
Nebula Importer 数据导入实践
Implementation steps of master detail detail layout mode of SAP ui5 application
College degree, what about 33 year old Baoma? I still sell and test, and my monthly income is 13K+
Using openpyxl module to write the binary list into excel file