-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Result returns too many docs #10
Comments
Doing some basic testing it looks like it is happening when you commented out line 42 in uspto/util/client.py. |
Dear Christopher, thanks for writing in. We can confirm the erratic behavior you are observing: uspto-peds search 'appExamName:WILSON, NICHOLAS R' | jq '.numFound'
451438 IntroductionThe change f07ebef you are referring to which removes the InvestigationAs the change has been done in a hurry in order to support @rahul-gj, I now recognize that it's on me that I should have checked the meaning of this parameter first. After looking into the appropriate documentation about the Lucene/Solr DisMax query parser now, we should take these details about the mm (Minimum Should Match) Parameter into consideration:
ConclusionSo, we definitively should send the So, when implementing that, querying for numberlists with a search command like
should probably be handled a bit differently. ThoughtsLet's see if we can a) determine the
for querying numberlists - if this actually would be the right thing to do here. If c) would fit the bill, we might even be able to set Thanks again for reporting this to us. With kind regards, |
After some more investigations we want to share that a query like this will always return the correct number of results, regardless of the
The user interface at https://ped.uspto.gov/peds/#/search will also behave like that and add quotes to the search string |
Based on your observations I found this works in my case where I am taking advantage of the internal classes:
Note the double quotes around the variable for the format expression. A change request to the code may not be necessary for the sake of @rahul-gj but perhaps a warning or something in the user doc? I appreciate you looking into this. |
The usage of quotes around the search expression has been working. Thanks again! |
Hello, I have been using the API for about a month now and I noticed something different today. Using the below query returns 451438 records and should only be returning 269 records associated to the given examiner.
I also emailed PEDS. They recently throttled the number of requests they could handle but we were able to get them to increase it again. I don't think the problem I'm experiencing is associated to their changes tho. Any thoughts?
The text was updated successfully, but these errors were encountered: