Migrate fetchers to Search.g4 ANTLR parser.#13691
Conversation
-Changed inherited fetcher classes to use ANTLR generated classes instead of lucene libraries. - Changed ACMPortalFetcher.java logic for transforming the parsed syntax to URL
|
Great start, to me it looks like your on the right track. |
- Changed ACMPortalFetcherTest unit test code to use Search.g4 generated classes instead of Lucene - Removed trivial comment from ACMPortalFetcher
- Changed AbstractQueryTransformer methods to obey Search.g4 parser rules - Modified ACMPortalFetcher to use the changed transformer logic
…d the search based fetcher classes to use it
…de while still being compatible with Search.g4 parser
… new parser and node logic
…the new Search.g4 logic. Fixed how AbstractQueryTransformer handles fields.
Siedlerchr
left a comment
There was a problem hiding this comment.
cool thanks for the work on this!
|
What about the todos in the PR, are they addressed? Do you plan to address them now or in a follow up? |
|
@trag-bot didn't find any issues in the code! ✅✨ |
|
Documentation issue is JabRef/user-documentation#584 |
|
Tested it, works fine. ❤️ |
calixtus
left a comment
There was a problem hiding this comment.
Thank you very much for this PR. Yes it was a lot of work and a hell of a ride through the search subsystem, but I hope it was worth it for you. It is a great addition to our codebase and we appreciate it very much!
I had added them when I opened the pr request as a draft and when the work was incomplete, they are done. |
Thank you! I really appreciate you saying that. It was definitely a challenge but I think it gave me valuable experience. |
|
The task was not completely described. The query validator on the UI seems to use a different validation.
@turhantolgaunal Do you think, you can take care of this? |
Ok, I will look into it |
* upstream/main: (32 commits) Fix path (#13769) Mode aware consistency check (#13584) Refine JBang check (#13765) Add Language Server to the UI and add the integrity/consistency check (#13697) Fix/remove comment code (#13763) New Crowdin updates (#13760) Bump org.openrewrite.rewrite from 7.14.0 to 7.14.1 (#13757) Bump com.autonomousapps:dependency-analysis-gradle-plugin (#13756) Bump dev.langchain4j:langchain4j-bom from 1.2.0 to 1.3.0 in /versions (#13755) Bump jablib/src/main/resources/csl-locales from `fa56de1` to `e29c453` (#13754) Bump com.autonomousapps:dependency-analysis-gradle-plugin (#13753) Bump org.mockito:mockito-core from 5.18.0 to 5.19.0 in /versions (#13752) Bump actions/upload-pages-artifact from 3 to 4 (#13751) Migrate fetchers to Search.g4 ANTLR parser. (#13691) [Junie]: fix: resolve IllegalArgumentException for non-absolute URIs (#13669) Add auto-renaming of linked files on entry data change (#13295) Walkthrough additions (#13745) Switch from zulu to corretto (#13749) New Crowdin updates (#13747) Fix copy to (#13741) ...


Closes #13607
TO DO:
Steps to test
Using the Search.g4 syntax for searching on the web with different options.
Documentation issue JabRef/user-documentation#584
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if change is visible to the user)