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
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.
The code above behaves like the "old" espacenet interface, i.e. the search finds no results. Is this a bug in Inpadoc.objects.filter() or is there a workaround or procedure to access the "new" interface via Inpadoc.objects.filter() to support hyphens?
Thanks!
The text was updated successfully, but these errors were encountered:
pybliometrics version: 4.1
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.
The search finds one result by dropping the second name after the hyphen, 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.
The code above behaves like the "old" espacenet interface, i.e. the search finds no results. Is this a bug in Inpadoc.objects.filter() or is there a workaround or procedure to access the "new" interface via Inpadoc.objects.filter() to support hyphens?
Thanks!
The text was updated successfully, but these errors were encountered: