-
-
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
Deactivate fulltextsearch as default #9491
Comments
This refs koppor#96 |
Metaissue: #8906 |
We cannot implement the full solution ("On file search button click"...), because #8963 touches nearly all code places which we would touch here, too. Therefore, as first step, we disable the search in files and building the full text index (PR #9516). We accept (for now), that "drive-by" users wanting to have a full-fledged, pre-configured bibliographic library management tool need to configure JabRef for their use case. |
I'm against this. Fulltext search is a very convenient feature for most users. If there are performance issues, then these should be fixed instead of being hidden under the carpet. |
This is a controversial change, because there does not seem to be a "right" solution. Gains in terms of performance for users with large databases will be a loss in terms of convenience for users with small databases. Fulltext search as it is currently implemented does not work without creating an index.
In my opinion:
|
Can we not run the indexing in a low-impact mode, ie only using max say 30% of the CPU in a low prio thread? Do we have data on how much longer the fulltext search is taking? I thought once lucene built the index, querying is really fast and cheap. |
DevCall decision: We keep the full text indexing as default "true". We hope that our friends of JabRef know the tweaks they need to do to get JabRef running smoothly. Maybe #8701 could be a solution: Store in the library whether the full text indexer should run for this particular library. |
JabRef 6.0--2023-01-04--06771c8 I'm not a developer, merely a user. I found JabRef now makes my system grind almost to a halt, and I've had to kill it several times. Almost by chance, I found this discussion about switching off full text indexing. My life has now returned to normal. But I must say in the strongest terms that I think full text indexing should be off by default. I agree with the points made by @ThiloteE in the issuecomment above. |
Dear developers thank you, for the instant and elaborate discussion. I do understand the concern about disabling indexing and fulltext search. May be the problem does not affect many users. In my case the problem occured while trying to switch to a new version (large databases without fulltext-index got loaded automatically). While I was aware, that an index is created at first startup (because of the circle) - I was not aware, that each search runs through all my attached pdfs. Now, since I know it, I get the logic. But it probably kept me from updating to the most recent version from more than three years. Every single release I tried and considered the new version to slow in comparison to 4.x. I really like the suggestion from: #9491 (comment) |
Yeah!
However, these two statements contradict. You say: turn it off - Thilo says: keep it on and ask power users to turn it off manually. |
Thank you for the feedback everybody. Yes, Koppor is right. I would like to emphasize though: I only strongly advocate for keeping it enabled FOR NOW. I have listed multiple reasons for it in my comment. I am open to disabling indexing, once there is a solution to following problem:
As I have seen in #9516, there already might be a fix for it (i have not tested this pr yet), but i think that one will have to wait until #8963 has been merged to avoid code conflicts, so let's just give it some time for now. |
I was about to comment, that I would also be in favour of changing the default to switching off full text indexing. But when looking through the JabRef documentation I found the following (https://docs.jabref.org/faq#q-i-have-a-huge-library.-what-can-i-do-to-mitigate-performance-issues):
This is perfect and really helps users with large databases. Maybe it could be made more prominent, but on the other hand, it is exactly where you would expect to find this kind of suggestions. |
Current way: Implement the question on the button (#9491 (comment)). This will be a dialog asking the user with some nice text. DialogActive fulltext search. Note that this requires preparation time. [Active fulltext search] [Cancel] |
!! Currently, a user can active full-text search in the search bar - even if in the preferences, it is not activated... --> With the solution at #9491 (comment), it should be the case that the indexing is activated after agreement of the user. |
* Ask for enable indexing when clicking fulltext search fixes #9491 comment * only set preferences value * fix flag * deselect button if not enabled * switch to listener * fix rewrite * Update src/main/java/org/jabref/gui/search/GlobalSearchBar.java Co-authored-by: Loay Ghreeb <loayahmed655@gmail.com> --------- Co-authored-by: Loay Ghreeb <loayahmed655@gmail.com>
Currently, a fresh installed JabRef has fulltextsearch option enabled.
Suggestion: Set the default option to deactivated
Explanation:
The text was updated successfully, but these errors were encountered: