vinted / elasticsearch-dsl-rs

Strongly typed Elasticsearch DSL written in Rust
Apache License 2.0
201 stars 18 forks source link

Point in Time #242

Closed FrederickFrance closed 1 year ago

FrederickFrance commented 1 year ago

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 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.

Could you add it, please ?