-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Library modification appearently triggers reindexing of all PDFs #8420
Comments
Hi, |
@LokeshSingh1102 Not sure if you are still interested and also I am not sure, if this issue is still relevant, because there have been some changes to indexing I believe, but if so then here would be my general advice: Check out https://github.com/JabRef/jabref/blob/main/CONTRIBUTING.md for a start. Also, https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace is worth having a look at. Feel free to ask if you have any questions here on GitHub or also at JabRef's Gitter chat. Try to open a (draft) pull request early on, so that people can see you are working on the issue and so that they can see the direction the pull request is heading towards. This way, you will likely receive valuable feedback. |
@btut is this issue here still relevant? |
Hi! Yes I think this should still be fixed but I would rather not touch the indexing before the lucene-search-backend is merged, otherwise we may have tons of conflicts. |
JabRef 5.8--2022-09-08--e970954 I did not note (but also did not specifically check) this issue for some months. But currently I perceive it. |
Hi @ilippert, |
Thank you for the note! just checked on JabRef 5.8--2022-09-15--853338a the re-indexing happens when starting up, not for the library modification. |
I fixed that bug already in the lucene-backend branch but can port it to main sometime soon since the lucene things still need plenty of work. |
@btut A backport into the main would be great. Can you give us a hint which line(s) are relevant=? |
Thanks! Should be easy to just cherry pick these commits. I will give it a try tomorrow |
I am not so sure about that, as the lucene branch moves plenty of files (because they had pdf in their name and now more than pdfs are indexed). I have some time later today to handle this. |
JabRef version
5.4 (latest release)
Operating system
Windows
Details on version and operating system
Windows 11
Checked with the latest development build
Steps to reproduce the behaviour
Note the last item, from which one gets the impression that the whole index has been rebuild.
However, looking at the code:
jabref/src/main/java/org/jabref/gui/LibraryTab.java
Line 341 in 222d214
is triggered by the "rename of the tab" (i.e. appending the star to signal the change of the library).
But luckily
jabref/src/main/java/org/jabref/logic/pdf/search/indexing/IndexingTaskManager.java
Lines 118 to 120 in 222d214
only updates the name, and doesn't really create a new index.
Proposed change:
updateTabTitle
to get a short display name for a database to a helper method.cc @btut
Appendix
No response
The text was updated successfully, but these errors were encountered: