Skip to content

Commit

Permalink
mappings: index call_numbers as text
Browse files Browse the repository at this point in the history
* Fixes inconsistent mapping between documents and items/holdings for
call numbers.
* Closes #2908.

:warning: Requires ES update mapping!
:warning: Requires reindexing of `call_number` and `second_call_number`
for all items and holdings, as well as `inherited_first_call_number` for
items of type `issue`.

Co-Authored-by: Pascal Repond <[email protected]>
  • Loading branch information
PascalRepond committed Sep 27, 2022
1 parent 1249d1e commit dac87f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"type": "integer"
},
"call_number": {
"type": "keyword"
"type": "text"
},
"second_call_number": {
"type": "keyword"
"type": "text"
},
"circulation_category": {
"properties": {
Expand Down
6 changes: 3 additions & 3 deletions rero_ils/modules/items/mappings/v7/items/item-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"search_analyzer": "standard"
},
"call_number": {
"type": "keyword"
"type": "text"
},
"second_call_number": {
"type": "keyword"
"type": "text"
},
"enumerationAndChronology": {
"type": "keyword"
Expand Down Expand Up @@ -188,7 +188,7 @@
"type": "keyword"
},
"inherited_first_call_number": {
"type": "keyword"
"type": "text"
},
"status_date": {
"type": "date"
Expand Down

0 comments on commit dac87f2

Please sign in to comment.