allenai / s2-folks

Public space for the user community of Semantic Scholar APIs to share scripts, report issues, and make suggestions.
Other
188 stars 29 forks source link

General search endpoint (including title, authors, journal...) #170

Closed straeter closed 7 months ago

straeter commented 12 months ago

Hi, it would be great to have a search endpoint that looks for a general matching of the metadata, like title, authors, journal... and gives the most likely results. This would be great e.g. when I have some bibliographic data which are often not coherent but usually contain enough information to find the paper unambiguously on semanticscholar.

Actually there is the manual search on the main page: https://www.semanticscholar.org/ but I have not found a respective endpoint for the api.

I tried the query completion and the relevance search but looks like they only work for titles / keywords, whereas the manual search also gives me the right result if I only enter the author names and the journal.

Would this be possible? Cheers

cfiorelli commented 7 months ago

@straeter have you tried the bulk search endpoint - this might resolve the need here. https://api.semanticscholar.org/graph/v1/paper/search/bulk

let us know thank you

straeter commented 7 months ago

@straeter have you tried the bulk search endpoint - this might resolve the need here. https://api.semanticscholar.org/graph/v1/paper/search/bulk

let us know thank you

@cfiorelli thanks, yes I tried the bulk search but as I understand it can only match the search term against title and abstract, not on authors and journal and one cannot order the results by relevance (which would be crucial for the usecase I described).

Whatever search mechanism the manual semanticscholar web search uses, this would be very helpful as an API endpoint

cfiorelli commented 7 months ago

Ah i see. I suppose you might construct this by downloading datasets and performing filtering and searching.

For a new endpoint we can take this down as a possible feature request. Thank you