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

How long does it takes for searcher to notice index update? #3

Closed
kosarko opened this issue May 17, 2019 · 1 comment · Fixed by #6
Closed

How long does it takes for searcher to notice index update? #3

kosarko opened this issue May 17, 2019 · 1 comment · Fixed by #6
Assignees

Comments

@kosarko
Copy link
Member

kosarko commented May 17, 2019

When we update the index with a cron job. Is the https://github.com/ufal/lindat_piwik_reports/blob/master/scripts/search_application.py#L9 searcher updated right away, or do the values returned depend on the workers lifecycle (it would then be possible that each worker returns a different count)?

We've observed some sort of value skipping on production. The above might be a pointer to the cause.

@kosarko
Copy link
Member Author

kosarko commented May 24, 2019

Maybe we should do some isCurrent (https://lucene.apache.org/core/6_5_0/core/org/apache/lucene/index/DirectoryReader.html#isCurrent--) check.
Or use the Makefile to restart the workers

@kosarko kosarko linked a pull request Feb 14, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants