-
Notifications
You must be signed in to change notification settings - Fork 270
Description
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
- FP7-NMP: https://api.crossref.org/works?query=fp7-nmp&select=DOI,title,funder&sample=100
- "FP7 NMP": https://api.crossref.org/works?query=%22fp7%20nmp%22&select=DOI,title,funder&sample=100
- FP7 AND NMP: https://api.crossref.org/works?query=fp7%20AND%20nmp&select=DOI,title,funder&sample=100
- FP7&NMP: https://api.crossref.org/works?query=fp7%26nmp&select=DOI,title,funder&sample=100
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
- https://search.crossref.org/funding?q=100011263
- https://api.crossref.org/works?filter=funder:100011263&select=DOI,title,funder&sample=100
- https://api.crossref.org/funders/100011263/works?rows=0
But these return only 222 because in many cases the funding line "FP7-NMP" is not properly recorded.
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
Activity
VladimirAlexiev commentedon Oct 23, 2018
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