PatentsView / PatentsView-API

BSD 2-Clause "Simplified" License
13 stars 4 forks source link

patents endpoint not behaving as expected #28

Closed crew102 closed 6 years ago

crew102 commented 6 years ago

(This issue is happening again).

Hi, I'm not sure how many endpoints this issue is impacting, but something is definitely going on with the patents endpoint. For example, at the time of writing this issue, this request is returning no patents (though it should):

http://www.patentsview.org/api/patents/query?q={"_eq":{"inventor_last_name":"chambers"}}&f=["patent_number"]

While this request is returning results as expected:

http://www.patentsview.org/api/patents/query?q={"_eq":{"inventor_last_name":"jobs"}}&f=["patent_number"]

Note that the second request may be working b/c the query results were cached from an earlier time when the API was not misbehaving.

sarahkelley commented 6 years ago

Hello! I can't replicate this error - the first query returns results as expect for me. Can you confirm that you are still having this issue?

crew102 commented 6 years ago

Working now. Thanks!

sarahkelley commented 6 years ago

Now I can replicate the issue, the query is not returning the expected results for me either. We will work on debugging this as soon as possible and let you know!

crew102 commented 6 years ago

The patents endpoint is acting up again (not returning expected results). This request used to return more than 1,000 records, now it's returning 0.

http://www.patentsview.org/api/patents/query?q={"_and":[{"_or":[{"_gte":{"patent_date":"2014-01-01"}},{"_lte":{"patent_date":"1978-01-01"}}]},{"_or":[{"_text_phrase":{"patent_abstract":"computer program"}},{"_text_phrase":{"patent_abstract":"dog leash"}}]}]}&f=&o={"include_subentity_total_counts":false,"matched_subentities_only":true,"page":1,"per_page":25}&s=

http://www.patentsview.org/api/patents/query?q=%7B%22_and%22:[%7B%22_or%22:[%7B%22_gte%22:%7B%22patent_date%22:%222014-01-01%22%7D%7D,%7B%22_lte%22:%7B%22patent_date%22:%221978-01-01%22%7D%7D]%7D,%7B%22_or%22:[%7B%22_text_phrase%22:%7B%22patent_abstract%22:%22computer%20program%22%7D%7D,%7B%22_text_phrase%22:%7B%22patent_abstract%22:%22dog%20leash%22%7D%7D]%7D]%7D&f=&o=%7B%22include_subentity_total_counts%22:false,%22matched_subentities_only%22:true,%22page%22:1,%22per_page%22:25%7D&s=