CrossRef / rest-api-doc

Documentation for Crossref's REST API. For questions or suggestions, see https://community.crossref.org/
Other
733 stars 269 forks source link

allow conjunction in FTS queries #421

Open VladimirAlexiev opened 5 years ago

VladimirAlexiev commented 5 years ago

It'd be extremely useful to allow conjunction (AND) in FTS queries. Eg I'm looking for all FP7-NMP papers (there should be about 3-8k in CrossRef). CrossRef's FTS always uses disjunction, no matter which modifiers I try. I've tried these

Since it's based on SOLR I expected it would support the Lucene query language. It's strange since #400 suggests that such modifiers are passed to SOLR uncensored.

377 basically asks for the same capability. A suggestion there "results closest to the search should appear at the top of the list" is not bad, but I need all the papers, so is there any "guarantee" that the boundary between relevant and not-relevant publications will be sharp?

PS: I know about funder search, eg

OpenAIRE search by funding line finds 8.5k pubs: https://explore.openaire.eu/search/advanced/publications?&funderlv2=%22ec__________%3A%3AEC%3A%3AFP7%3A%3ASP1%3A%3ANMP%22&fn0=and

VladimirAlexiev commented 5 years ago

This from the documentation provided a brief glimpse of hope: "Field queries can be combined with the general query paramter and each other. Each query parameter is ANDed with the others". But http://api.crossref.org/v1/works?query=fp7&query=nmp returns java.lang.ClassCastException, and there's no query.funder