fix(patents): drop CPC/IPC topic corroboration from org_patents matching, keeping only the institution-or-personal-assignee identity check
LocationBasedServices/smartguide/pipeline/pr-dev There was a failure building this commit

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 18:11:27 +02:00
co-authored by Claude Sonnet 5
parent 970486d860
commit 8a469a73bf
4 changed files with 13 additions and 227 deletions
+3 -7
View File
@@ -4,13 +4,9 @@ index_org_patents.py — Build the org_patents Elasticsearch index for one insti
Fetches all OpenAlex authors affiliated with the institution, searches EPO/USPTO for
patents matched via institution assignee and/or author name (match_type: "institution",
"name", or "both"), deletes existing documents for the institution, and reindexes.
Every inventor-name match counts outright only if the assignee is the institution
itself; everything else (a personal-assignee match or a third-party assignee) only
counts if the patent's primary IPC/CPC classification also maps to OpenAlex research
topics that appear on the author's own profile — applied regardless of how common the
name looks in our local OpenAlex data, since a name can appear unique there while
still being common globally in EPO/USPTO.
"name", or "both"), deletes existing documents for the institution, and reindexes. An
inventor-name match counts only if the assignee is the institution itself or the
person themselves, to avoid pulling in unrelated patents via a shared name.
Usage:
python scripts/patents/index_org_patents.py --institution-id <OpenAlex-ID>