fabiobatalha / crossrefapi

A python library that implements the Crossref API.
BSD 2-Clause "Simplified" License
280 stars 44 forks source link

Multiple words in query #20

Closed fahdi104 closed 3 years ago

fahdi104 commented 5 years ago

How to do query with multiple words? I use "+" but the results that I got from Crossref website is different than using crossrefapi?

fabiobatalha commented 5 years ago

Hello @fahdi104

Can you include the string you are using in both queries (Using the website and crossrefapi) in this issue?

CNGaoWenbo commented 4 years ago

What's the grammar of multiple query? Can you give a code example?

BananaTonic commented 4 years ago

You can do query with multiple words using the list, as following example.

works = Works()
res = works.query(bibliographic=[keyword1,keyword2,keyword3])
CNGaoWenbo commented 4 years ago

@BananaTonic It works, thank you! Though it seems to be equivalent to OR relationship among the keywords.

moeinj9 commented 4 years ago

I also would like to use this feature, but I need the equivalent of AND relationship between the query terms. For example, curcumin AND carcinoma. Please advise. Thanks!

chrisoutwright commented 4 years ago

I am also getting nonsensical results by using author and tile of the paper: works.query(bibliographic='Context-aware natural language generation for spoken dialogue systems').filter(from_online_pub_date='2016').query(author='Zhou')

Gets me results like: A Multi-Objective Energy and Environmental Systems Planning Model: Management of Uncertainties and Risks for Shanxi Province, China . A boolean and should be implemented for it.

fabiobatalha commented 3 years ago

Those improvements must be done in Crossref API Server, the client will reflect the improvements once they are available in the Crossref API Server.