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 last author positional search #206

Closed
aaccomazzi opened this issue Nov 22, 2023 · 2 comments · Fixed by #212
Closed

Implement last author positional search #206

aaccomazzi opened this issue Nov 22, 2023 · 2 comments · Fixed by #212

Comments

@aaccomazzi
Copy link
Member

We know it's difficult, but the last author name (and last orcid, etc) position is significant for the life sciences.
Basically we need to implement the ability to say:

pos(author:"accomazzi, alberto", -1)

This should return all records where the search term has the last position.

All fields supporting positional searches should provide this functionality (e.g. orcid, institution, etc).

@aaccomazzi
Copy link
Member Author

It would of course be nice to generalize this so we can search for a name in the last N positions of an author field:

pos(author:"accomazzi, a", -3)

and even:

pos(author:"accomazzi, a", -5, -1)

(which returns records where "accomazzi, a" appears in the last 5 positions).
As syntactic sugar, we could also adopt classic's notation with the $:

author:"$accomazzi, a"

(similar to what we do now with ^ for first author)

@JCRPaquin
Copy link
Contributor

Partial implementation in this PR: #212

@JCRPaquin JCRPaquin linked a pull request Mar 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants