Skip to content
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

Support hyphenated names in Inpadoc searches #183

Open
pgcharetteUdeS opened this issue Jan 15, 2025 · 0 comments
Open

Support hyphenated names in Inpadoc searches #183

pgcharetteUdeS opened this issue Jan 15, 2025 · 0 comments

Comments

@pgcharetteUdeS
Copy link

patent_client version: 5.0.18

Code to reproduce the bug:
query_str = 'in=("Pratte" prox/distance<3 "Jean-François")'
results = Inpadoc.objects.filter(cql_query=query_str).to_pandas()
print(f"Search done, {len(results)} results!")

Expected behavior:
This search should find at least one result, but none are found. The problem is caused by the hyphenated name "Jean-François".

The search will find one result by dropping the second name after the hyphen, e.g. by changing the query to: query_str = 'in=("Pratte" prox/distance<3 "Jean")'

Currently, espacenet has two "smart search" web interfaces:

  1. "Classic" (i.e. old): https://worldwide.espacenet.com/?locale=en_EP
  2. "New": https://worldwide.espacenet.com/

If you try the above search query string including the hyphen with the "old" interface, the search finds nothing, whereas it correctly finds one document with the "new" interface. The espacenet documentation says to replace hypens with space, but this makes no difference to the results with the above code.

Therefore, the code above behaves like the "old" espacenet interface, i.e. the search finds no results. This isn't a bug in Inpadoc.objects.filter() per se, but is there a workaround or procedure to support hyphens?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant