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

Implement negative position search #212

Merged
merged 15 commits into from
May 16, 2024

Conversation

JCRPaquin
Copy link
Contributor

Background

Some academic fields rely on last author information, similar to how other fields rely on first author information. ADS currently does not support last author search.

Purpose

This PR adds support for negative index queries, with a minor syntax caveat that all negative indices must be in quotation marks. Future work will modify the ADS grammar to allow negative indices without quotation marks, and possibly syntax sugar to make exact last author searches more streamlined.

Additional changes

How query fields are determined has been extended to support a broader gamut of query types. This change was necessary to get accurate field information from the sub-queries passed into the negative range query.

Copy link
Member

@kelockhart kelockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a few comments to make sure we're on the same page with the logic - lmk if I've misunderstood any of the Java code.

@JCRPaquin JCRPaquin merged commit 85c935d into master May 16, 2024
@JCRPaquin JCRPaquin deleted the jcrpaquin/feature/negative-position-search branch May 16, 2024 07:38
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 this pull request may close these issues.

Implement last author positional search
4 participants