Comments (7)
Hi,
Does making a fielded query against identifier
and/or alternate_bibcode
(as documented in https://github.com/adsabs/adsabs-dev-api/blob/master/search.md#fields) work for this use case?
from ads.
alternate_bibcode
does not work with an arxiv ID, but identifier
does! Sorry I missed this in the docs. Thanks for pointing it out.
from ads.
Just to clarify:
identifer
: will contain all identifiers ever used (in theory) arXiv, ADS arXiv bibcode, ADS bibcode, etc.alternate_bibcode
: will contain the ADS bibcode that was constructed (but modified) from the original arXiv identifier, e.g.,2014arXiv1409.7699E
rather thanarXiv:1409.7699
You can also use the field map arxiv
like:
ads.SearchQuery(q='arxiv:1409.7699')
but in the end the search engine is just mapping arxiv
to identifier
under the hood....
from ads.
Interesting. I did try just using q='1409.7699'
, which didn't seem to work; it needs the 'arxiv:'
specification? Does that mean its a field-specific query instead of an regex for all fields?
from ads.
Yes, you need the arxiv
field. But like I said, all that happens is the parser turns arxiv
into identifier
. So arxiv:1409.7699
= identifier:1409.7699
, I guess it's only useful for readability in your script....
When you do an 'unfielded' search, i.e., q='1409.7699'
, the query parser has a default rule for what it is searching for. Currently, it does a search combined on author, title, and abstract, with weighting:
author^1.5 title^1.4 abstract^1.3 all
You can see this here: https://github.com/romanchyla/montysolr/blob/2d2f8e315f427e6ebd3276ffbfb3ffa6ac1a6b3a/contrib/examples/adsabs/server/solr/collection1/solrconfig.xml#L625
from ads.
And forgot to directly answer your second part. identifier
is a stored field, and so you're doing a fielded search when you specify arxiv
.
You can see a list of the stored and virtual fields here: https://adsabs.github.io/help/search/comprehensive-solr-term-list
from ads.
Very helpful, thanks for the explanations @jonnybazookatone!
from ads.
Related Issues (20)
- `ads.SearchQuery` returns a status 500 APIResponseError HOT 6
- SearchQuery not respecting start parameter HOT 27
- docs: link to available search field needs updating HOT 3
- author_count return None HOT 3
- How do you search on a range of years? HOT 1
- citation_count returns None HOT 2
- Missing paper.journal attribute HOT 1
- Missing .adsurl attribute HOT 1
- API Response Error HOT 2
- Search parameters wrapped in parentheses should not be auto-quoted
- readthedocs rendering is broken HOT 2
- support for Positional Field Searches HOT 1
- ExportQuery not working properly HOT 1
- Not able to use timeAllowed and cursorMark combination HOT 1
- Why is the total number of filtered articles and citation_count cumulative number inconsistent with manual searches? HOT 1
- API Response Error while running example HOT 1
- ads version 0.12.3 not working with python 3.8 HOT 2
- Over-dependency on `httpready` HOT 1
- Non-lazy loading leads to missing properties in SeachQuery HOT 2
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 ads.