|
@@ -225,7 +225,8 @@ public class ReactiveElasticSearchService implements ElasticSearchService {
|
|
.collectList()
|
|
.collectList()
|
|
.filter(CollectionUtils::isNotEmpty)
|
|
.filter(CollectionUtils::isNotEmpty)
|
|
.flatMapMany(metadataList -> this
|
|
.flatMapMany(metadataList -> this
|
|
- .createSearchRequest(queryParam, metadataList)
|
|
|
|
|
|
+ .createSearchRequest(queryParam.clone().noPaging(), metadataList)
|
|
|
|
+ .doOnNext(search -> search.source().size(queryParam.getPageSize()))
|
|
.flatMapMany(restClient::scroll)
|
|
.flatMapMany(restClient::scroll)
|
|
.map(searchHit -> Tuples.of(metadataList, searchHit))
|
|
.map(searchHit -> Tuples.of(metadataList, searchHit))
|
|
);
|
|
);
|