-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Milestone
Description
Describe your question
Hi there
Trying new filter ep_user_pre_query_db_results
Any chance to set ep_indexing_last_processed_object_id for correct sync? Or other way to resolve the problem with sync?
add_filter('ep_user_pre_query_db_results', function($results, $args) {
error_log(print_r($args, true));
$users = [...] // my array of ids
return [
'objects' => $users,
'total_objects' => count($users),
];
});LOG
[10-Nov-2025 09:49:09 UTC] Array
(
[number] => 300
[offset] => 0
[orderby] => ID
[order] => desc
[ep_indexing_advanced_pagination] => 1
[per_page] => 300
[ep_sync_id] => 6911b5159bbbd
)
[10-Nov-2025 09:49:23 UTC] Array
(
[number] => 300
[offset] => 0
[orderby] => ID
[order] => desc
[ep_indexing_advanced_pagination] => 1
[per_page] => 300
[ep_sync_id] => 6911b523a628a
[ep_indexing_last_processed_object_id] => 4395918 // this
)
[10-Nov-2025 09:49:40 UTC] Array
(
[number] => 300
[offset] => 0
[orderby] => ID
[order] => desc
[ep_indexing_advanced_pagination] => 1
[per_page] => 300
[ep_sync_id] => 6911b534b0e31
[ep_indexing_last_processed_object_id] => 4395918 // the same
)
Elasticsearch 9.2.0
ElasticPress 5.3.1
ElasticPress Labs 2.5.0
Thanks
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels