Comments (1)
Hi Rudra,
The best way to handle this would be to use an if statement when building your query string. Something like this (assuming you're using Python):
query = 'first_author:' + first_author + ' year:'+ year
if volume:
query += ' volume:' + volume
if page:
query += ' page:' + page
There are potentially some other ways you could write this, but we're limited by the fact that if a record doesn't have a volume/page, then it doesn't usually have that field even associated with the record in the database (so you couldn't just do a wildcard search on the volume/page, for example). And if you're getting into that level of detail anyway, you might as well just modify the query string based on the fields you do have, as I've outlined above.
Hope this helps!
from adsabs-dev-api.
Related Issues (20)
- Get list of corresponding bibstems and journal full names through API?
- curl working but not request HOT 3
- Export API example custom format returns AASTeX format
- curl -H 'Authorization: Bearer:MZUyqw3ZR0aKFApe9ZWdYXB89HJcUBNvLir8751D' 'https://api.adsabs.harvard.edu/v1/search/query?q=star&fl=bibcode'
- pdf downloads with curl fail with captcha message HOT 3
- Dumping all personal libraries into a bibtex file HOT 1
- Syntax error while parsing DOI HOT 4
- Can't use != to check if an article exists in a container HOT 1
- export wth wrong xsd location and xml namespace in refabsxml format HOT 1
- What are the constraints on library names HOT 1
- Can't remove from library some papers submitted with arXiv bibcodes
- Can't get ratelimits HOT 1
- Example curl request in README does not produce X-RateLimit headers HOT 4
- Match regular expression on "body" field
- Recent update? HOT 6
- Question: Is there a way to perform a query with first affiliation? HOT 1
- Big query search does not work with some bibcodes HOT 1
- Issues with CSL export HOT 2
- Add reference_count as a fl field in searches?
- Citation field is not filtered by citation count HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adsabs-dev-api.