You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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!
The text was updated successfully, but these errors were encountered:
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:
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!
The text was updated successfully, but these errors were encountered: