1.1.0版本 使用groupBy 查询报错
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 249
- PR merge metrics
- No merged PRs in 30d
Description
使用的es版本为 7.14.0
java代码:
LambdaEsQueryWrapper queryWrapper = new LambdaEsQueryWrapper<>();
queryWrapper.groupBy(ImportElasticDataVO::getCustNo);
SearchResponse search = elasticMapper.search(queryWrapper);
报错:
Caused by: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=maxSize must be >= 0 and < 2147483631; got: 2147483647]]
dsl语句:
{"size":10000,"query":{"bool":{"adjust_pure_negative":true,"boost":1.0}},"track_total_hits":2147483647,"aggregations":{"custNoTerms":{"terms":{"field":"custNo","size":2147483647,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_key":"asc"}]}}}}
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Java example with Elasticsearch 7.14.0 and inspect the DSL generated by LambdaEsQueryWrapper.groupBy. Compare the aggregation size and track_total_hits values with Elasticsearch's accepted limits; done when the grouped query executes successfully without the maxSize error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100