GithubHelp home page GithubHelp logo

Comments (7)

vsudilov avatar vsudilov commented on May 25, 2024

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.

lzkelley avatar lzkelley commented on May 25, 2024

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.

jonnybazookatone avatar jonnybazookatone commented on May 25, 2024

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 than arXiv: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.

lzkelley avatar lzkelley commented on May 25, 2024

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.

jonnybazookatone avatar jonnybazookatone commented on May 25, 2024

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.

jonnybazookatone avatar jonnybazookatone commented on May 25, 2024

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.

lzkelley avatar lzkelley commented on May 25, 2024

Very helpful, thanks for the explanations @jonnybazookatone!

from ads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.