Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GND ID index fields. #2138

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions src/main/resources/alma/index-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,16 @@
]
},
"id": {
"type": "keyword"
"type": "keyword",
"copy_to": [
"q.all"
]
},
"gndIdentifier": {
"type": "keyword",
"copy_to": [
"q.all"
]
}
}
},
Expand Down Expand Up @@ -724,7 +733,18 @@
]
},
"id": {
"type": "keyword"
"type": "keyword",
"copy_to": [
"q.all",
"q.subject"
]
},
"gndIdentifier": {
"type": "keyword",
"copy_to": [
"q.all",
"q.subject"
]
},
"dateOfBirthAndDeath": {
"type": "text"
Expand Down Expand Up @@ -768,7 +788,18 @@
}
},
"id": {
"type": "keyword"
"type": "keyword",
"copy_to": [
"q.all",
"q.subject"
]
},
"gndIdentifier": {
"type": "keyword",
"copy_to": [
"q.all",
"q.subject"
]
},
"label": {
"type": "text",
Expand Down
13 changes: 13 additions & 0 deletions web/test/tests/IndexIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static Collection<Object[]> data() {
{ "contribution.agent.label:Westfalen", /*->*/ 3 },
{ "contribution.agent.label:Westfälen", /*->*/ 3 },
{ "contribution.agent.id:\"https\\://d-nb.info/gnd/5253963-5\"", /*->*/ 1 },
{ "contribution.agent.gndIdentifier:5253963-5", /*->*/ 1 },
{ "contribution.agent.id:5265186-1", /*->*/ 0 },
{ "contribution.agent.id:\"5265186-1\"", /*->*/ 0 },
{ "title:Westfalen AND contribution.agent.label:Prause", /*->*/ 1 },
Expand All @@ -50,6 +51,7 @@ public static Collection<Object[]> data() {
{ "subject.componentList.label:Düsseldorfer", /*->*/ 1 },
{ "subject.componentList.label.unstemmed:Düsseldorfer", /*->*/ 0 },
{ "subject.componentList.id:\"https\\://d-nb.info/gnd/4042570-8\"", /*->*/ 2 },
{ "subject.componentList.gndIdentifier:4042570-8", /*->*/ 2 },
{ "(title:Westfalen OR title:Münsterland) AND NOT contribution.agent.id:\"https\\://d-nb.info/gnd/2019209-5\"", /*->*/ 8 },
{ "subject.componentList.label:Westfalen", /*->*/ 11 },
{ "subject.componentList.label:Westfälen", /*->*/ 11 },
Expand All @@ -58,6 +60,7 @@ public static Collection<Object[]> data() {
{ "subject.componentList.id:1113670827", /*->*/ 0 },
{ "subject.componentList.type:PlaceOrGeographicName", /*->*/ 25 },
{ "publication.location:Berlin", /*->*/ 16 },
{ "subject.gndIdentifier:4040795-0", /*->*/ 1 },
{ "subject.notation:914.3", /*->*/ 7 },
{ "subject.notation:914", /*->*/ 0 },
{ "subject.notation:914*", /*->*/ 7 },
Expand Down Expand Up @@ -113,13 +116,23 @@ public static Collection<Object[]> data() {
{ "q.subject:Westfälen", /*->*/ 11 },
{ "q.subject:Lithuania", /*->*/ 1 },
{ "q.subject:Baukem", /*->*/ 1 },
{ "q.subject:\"https\\://d-nb.info/gnd/4040795-0\"", /*->*/ 1 },
{ "q.subject:\"https\\://d-nb.info/gnd/4042570-8\"", /*->*/ 2 },
{ "q.subject:4040795-0", /*->*/ 1 },
{ "q.subject:4042570-8", /*->*/ 2 },
{ "q.title:der", /*->*/ 0 },
{ "q.title:Westfalen", /*->*/ 8 },
{ "q.title:Eilendorf", /*->*/ 1 },
{ "q.all:Federale", /*->*/ 5 },
{ "q.all:Fédérale", /*->*/ 5 },
{ "q.all:(Courtillon cinema)", /*->*/ 1 },
{ "q.all:(Courtillon cinéma)", /*->*/ 1 },
{ "q.all:\"https\\://d-nb.info/gnd/4040795-0\"", /*->*/ 1 },
{ "q.all:\"https\\://d-nb.info/gnd/4042570-8\"", /*->*/ 2 },
{ "q.all:\"https\\://d-nb.info/gnd/5253963-5\"", /*->*/ 1 },
{ "q.all:4040795-0", /*->*/ 1 },
{ "q.all:4042570-8", /*->*/ 2 },
{ "q.all:5253963-5", /*->*/ 1 },
{ "q.all:0702075558", /*->*/ 1 },
{ "q.all:07\\-0207\\-555\\-8", /*->*/ 1 }, // search with hyphens possible due to digibib_standardnumber
{ "q.all:07206763", /*->*/ 1 },
Expand Down
Loading