Skip to content

Support hyphenated names in Inpadoc searches #183

@pgcharetteUdeS

Description

@pgcharetteUdeS

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions