Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventListener for committer #20

Open
FcrbPeter opened this issue Jul 12, 2019 · 1 comment
Open

EventListener for committer #20

FcrbPeter opened this issue Jul 12, 2019 · 1 comment

Comments

@FcrbPeter
Copy link

Hi Pascal,

I made my own collector / crawler lifecycle event listener to implement extra monitoring feature for my usage and it works fine.

I am also want to collect the committer status, such as "how many documents is going to commit" and "how many documents have been committed", etc.

Is there a way to achieve it?

@essiembre
Copy link
Contributor

essiembre commented Jul 14, 2019

If you are extending AbstractBatchCommitter, you can overwrite commitBatch to find out how many items are to be committed before calling super().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants