From what I understand, I should open a PIT with elasticsearch_rs, create a search with elasticsearch_dsl::search::request::Search::new().query(my_query).pit(my_pit).sort(["_id"]), continue with elasticsearch_dsl::search::request::Search::new().query(my_query).pit(my_pit).search_after(previous_sort_values) until getting all asked data, and finally close the PIT.
But I don't find a way to add the pit in my search.
Hi
I would like to use search_after with a point in time.
From what I understand, I should open a PIT with elasticsearch_rs, create a search with
elasticsearch_dsl::search::request::Search::new().query(my_query).pit(my_pit).sort(["_id"])
, continue withelasticsearch_dsl::search::request::Search::new().query(my_query).pit(my_pit).search_after(previous_sort_values)
until getting all asked data, and finally close the PIT.But I don't find a way to add the pit in my search.
Could you add it, please ?