Skip to content

Commit

Permalink
schema: added identifiers to subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 committed Dec 4, 2024
1 parent 731ac68 commit 660bb80
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 8 deletions.
2 changes: 1 addition & 1 deletion invenio_rdm_records/records/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class CommonFieldsMixin:
),
subjects=PIDListRelation(
"metadata.subjects",
keys=["subject", "scheme", "props"],
keys=["subject", "scheme", "props", "identifiers"],
pid_field=Subject.pid,
cache_key="subjects",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,16 @@
"props": {
"type": "object",
"dynamic": "true"
},
"identifiers": {
"properties": {
"identifier": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,16 @@
"props": {
"type": "object",
"dynamic": "true"
},
"identifiers": {
"properties": {
"identifier": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,16 @@
"props": {
"type": "object",
"dynamic": "true"
},
"identifiers": {
"properties": {
"identifier": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@
"accent_analyzer": {
"tokenizer": "standard",
"type": "custom",
"char_filter": [
"strip_special_chars"
],
"filter": [
"lowercase",
"asciifolding"
]
"char_filter": ["strip_special_chars"],
"filter": ["lowercase", "asciifolding"]
}
}
}
Expand Down Expand Up @@ -1248,6 +1243,16 @@
"props": {
"type": "object",
"dynamic": "true"
},
"identifiers": {
"properties": {
"identifier": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,16 @@
"props": {
"type": "object",
"dynamic": "true"
},
"identifiers": {
"properties": {
"identifier": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,16 @@
"props": {
"type": "object",
"dynamic": "true"
},
"identifiers": {
"properties": {
"identifier": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
}
}
}
}
},
Expand Down

0 comments on commit 660bb80

Please sign in to comment.