首页 > TAG信息列表 > getHits

26-RestHighLevelClient----高亮&分页&排序&指定返回字段

@SpringBootTest public class RestHighLevelClientOpsTest { private RestHighLevelClient restHighLevelClient; @Autowired public RestHighLevelClientOpsTest(RestHighLevelClient restHighLevelClient) { this.restHighLevelClient = restHighLev

es 滚动查询二

  /** * es 游标获取总数 * * @param tableName 表名 * @param query 查询条件 */ public void esScrollDataHelp(String tableName, QueryBuilder query) { TransportClient client = ElasticSearchUtil.getClient(); Searc

ElasticSearch中通过Scroll查询所有数据

ElasticSearch中通过Scroll查询所有数据 SearchRequest request = new SearchRequest(index); //设置超时时间 request.scroll(TimeValue.timeValueMillis(1L)); SearchSourceBuilder sourceBuilder = new SearchSourceBuilder(); //单次查询的量 sourceBuilder.size(1000); reque