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

Match regular expression on "body" field #73

Open
vmplacco opened this issue Feb 11, 2021 · 0 comments
Open

Match regular expression on "body" field #73

vmplacco opened this issue Feb 11, 2021 · 0 comments

Comments

@vmplacco
Copy link

Hi there,

I am working with the US National Gemini Office within NOIRLab, trying to automate the search for new publications with the Gemini Observatory data, but subdividing it by partner country based on the program ID. Currently, I am able to use the "bibgroup:gemini" successfully on the ADS search API, but I also wanted to search the entire text (including acknowledgments) and find the specific Gemini Program ID. That is needed to cross-match with the observing database and assign a given paper to the partner country from which the data came (for statistical purposes). I tried filtering by the countries listed on the affiliations. Even though that works, it does not give an accurate count for various reasons.

I wanted to be able to search for the following regular expression

G[NS].*20[0-9][0-9][AB].*[0-9][0-9][0-9]

This regex accounts for all valid program IDs (e.g. GS-2020A-Q-123) and also for the most common mistakes (GS2020A-Q123 and so on).

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

No branches or pull requests

1 participant