feat(es): paginate past 10k documents via pit and search_after
This commit is contained in:
1 parent
1d71a5fc23
commit
73a7b3f2c7
35 files changed
+1622
-153
No files matched your search
@@ -68,6 +68,8 @@ pub struct DocumentFindRequest {
|
||||
pub sort: Option<String>,
|
||||
pub collation: Option<String>,
|
||||
pub cursor: Option<String>,
|
||||
#[serde(default)]
|
||||
pub cursor_pagination: bool,
|
||||
pub execution_id: Option<String>,
|
||||
}
|
||||
|
||||
@@ -330,6 +332,7 @@ pub async fn find_documents(
|
||||
req.sort.as_deref(),
|
||||
req.collation.as_deref(),
|
||||
req.cursor.as_deref(),
|
||||
req.cursor_pagination,
|
||||
),
|
||||
)
|
||||
.await?;
|
||||
|
||||
@@ -444,6 +444,7 @@ pub async fn find_documents(
|
||||
req.sort.as_deref(),
|
||||
req.collation.as_deref(),
|
||||
None,
|
||||
false,
|
||||
),
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in new issue
Block a user