Skip to content

Commit

Permalink
Include agent and subject ID in DigiBib search fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Jan 24, 2025
1 parent 6f70586 commit 0b82c06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
17 changes: 14 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,10 @@
]
},
"id": {
"type": "keyword"
"type": "keyword",
"copy_to": [
"q.all"
]
},
"gndIdentifier": {
"type": "keyword",
Expand Down Expand Up @@ -730,7 +733,11 @@
]
},
"id": {
"type": "keyword"
"type": "keyword",
"copy_to": [
"q.all",
"q.subject"
]
},
"gndIdentifier": {
"type": "keyword",
Expand Down Expand Up @@ -781,7 +788,11 @@
}
},
"id": {
"type": "keyword"
"type": "keyword",
"copy_to": [
"q.all",
"q.subject"
]
},
"gndIdentifier": {
"type": "keyword",
Expand Down
5 changes: 5 additions & 0 deletions web/test/tests/IndexIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ 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 },
Expand All @@ -125,6 +127,9 @@ public static Collection<Object[]> data() {
{ "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 },
Expand Down

0 comments on commit 0b82c06

Please sign in to comment.