You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2022/06/02 09:56:47 UTC
[GitHub] [james-project] chibenwa commented on a diff in pull request #1018: Upgrade ES to 8.2
chibenwa commented on code in PR #1018:
URL: https://github.com/apache/james-project/pull/1018#discussion_r887780469
##########
backends-common/elasticsearch-v8/src/main/java/org/apache/james/backends/es/v8/search/ScrolledSearch.java:
##########
@@ -93,9 +93,14 @@ private Mono<ScrollResponse<ObjectNode>> buildRequest(Optional<String> scrollId)
.scrollId(scrollId.get())
.scroll(TIMEOUT)
.build()))
- //.orElseGet(() -> client.search(searchRequest));
- .get(); // TODO: scroll and search return different responses now, thus this trick not working...
- // not sure of the best way to solve that yet
+ .orElseGet(() -> client.search(searchRequest)
Review Comment:
https://www.elastic.co/guide/en/elasticsearch/reference/8.2/paginate-search-results.html#search-after
By default, you cannot use from and size to page through more than 10,000 hits. This limit is a safeguard set by the [index.max_result_window](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/index-modules.html#index-max-result-window) index setting.
Regarding search_after, requesting a point in time looks expensive and likely is a blocker. Before adoption I'd like to have a performance evaluation...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org