- 最新
- 最多得票
- 最多評論
So the search_after parameter involves the point in time (PIT) API, which is an X-Pack/ElasticSearch exclusive feature due to licensing issues.
I can recommend you try one or both of the following workarounds. First, you can try querying the index using the search call, without the "PIT" part of the query. For instance, like this sample query.
-> GET sample/_search { "size": 2, "query": { "match_all": {} }, "sort": [ {"timestamp": "asc"}, {"FlightNum":"asc"} ] }
Second, you may also find the scroll API useful. This will help you to retrieve large sets of results from a single scrolling search request.
https://www.elastic.co/guide/en/elasticsearch/reference/7.10/paginate-search-results.html#scroll-search-results https://www.elastic.co/guide/en/elasticsearch/reference/7.10/scroll-api.html
相關內容
- 已提問 3 個月前
- 已提問 5 個月前
- AWS 官方已更新 3 個月前

As I mentioned, I want to search the result only with unique writers(no duplication on the list) using Collapse and search_after. But current Opensearch version on AWS couldn't support this feature. Is there any workaround to get the search result with unique writers and paging?