feat: add benchmarks for Lucene fulltext search and linked file indexing, including setup and teardown of the index.#15385
Conversation
…ing, including setup and teardown of the index.
|
Hey @YashUkhare! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
Review Summary by QodoAdd Lucene fulltext search and linked file indexing benchmarks
WalkthroughsDescription• Implement Lucene fulltext search and linked file indexing benchmarks • Add setup initialization for PDF entries and search infrastructure • Replace placeholder TODO implementations with functional benchmark methods • Add teardown cleanup for index directory and resources Diagramflowchart LR
A["Benchmark Setup"] -->|Initialize| B["Lucene Index"]
B -->|Index PDF Entries| C["DefaultLinkedFilesIndexer"]
C -->|Enable Search| D["LinkedFilesSearcher"]
D -->|Execute Query| E["Search Benchmark"]
C -->|Rebuild Index| F["Index Benchmark"]
E -->|Cleanup| G["TearDown"]
F -->|Cleanup| G
File Changes1. jablib/src/jmh/java/org/jabref/benchmarks/Benchmarks.java
|
Code Review by Qodo
1. init() mixes responsibilities
|
|
Note that your PR will not be reviewed/accepted until you have gone through the mandatory checks in the description and marked each of them them exactly in the format of |
✅ All tests passed ✅🏷️ Commit: b4729a9 Learn more about TestLens at testlens.app. |
|
What issue is this supposed to close? Did you mean to create a draft PR? |
This PR is not linked to an existing issue. I noticed some TODO comments in the codebase and implemented them. |
…ing, including setup and teardown of the index. (JabRef#15385)
…o fix-group-icons * 'fix-group-icons' of github.com:geovani-rocha/jabref: (26 commits) chore(deps): update dependency org.apache.logging.log4j:log4j-to-slf4j to v2.25.4 (JabRef#15436) chore(deps): update jackson monorepo to v3.1.1 (JabRef#15435) Fix PushToPreferences reset and import (JabRef#15395) Add fulltext fetcher for Wiley via their TDM API (JabRef#15388) Embed in-text nature in reference marks for CSL citations (JabRef#15381) Chore(deps): Bump com.gradleup.shadow:shadow-gradle-plugin (JabRef#15430) Fix not on fx thread exceptions for cleanup and cite key generator (JabRef#15424) Revert "Update gradle to nightly of 2026-03-23 (JabRef#15372)" feat: add benchmarks for Lucene fulltext search and linked file indexing, including setup and teardown of the index. (JabRef#15385) Chore(deps): Bump org.openrewrite.recipe:rewrite-recipe-bom (JabRef#15418) Add claude gitignore (JabRef#15413) Fix group filter icon in side pane (JabRef#15408) Add new prs_link feature Chore(deps): Bump org.glassfish.hk2:hk2-api in /versions (JabRef#15422) Chore(deps): Bump org.openrewrite.rewrite from 7.28.2 to 7.29.0 (JabRef#15419) Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#15417) Fix for inconsistent "hide tab bar" behavior (JabRef#15409) Update dependency org.glassfish.hk2:hk2-utils to v4 (JabRef#15407) Persist file notifications (JabRef#15403) Update dependency org.glassfish.hk2:hk2-locator to v4 (JabRef#15405) ...
…ing, including setup and teardown of the index. (JabRef#15385)
Related issues and pull requests
Closes _____
PR Description
Steps to test
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)