Bug 31537: Elasticsearch - index mapping for 003 control-number-identifier is twice in mappings.yaml

This patch removes one of the two mappings for the 003 field to the
control-number-identifier index (for MARC21).

To test:
1) Apply patch
2) reindex with mappings reset
3) try to search for cni:code (for example cni:OSt)
--> it should return the desired results
4) try to search for control-number-identifier:code (for example
control-number-identifier:OSt)
--> it should return the desired results
5) Optionally, try the test plan in Bug 11175 to make sure it still
works

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Caroline Cyr La Rose 2022-09-08 11:54:19 -04:00 committed by Tomas Cohen Arazi
parent ca6c132bac
commit 3affdad4c2
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -2723,15 +2723,6 @@ biblios:
sort: ~ sort: ~
suggestible: '' suggestible: ''
type: '' type: ''
control-number-identifier:
label: control-number-identifier
mappings:
- facet: ''
marc_field: 003
marc_type: marc21
sort: ~
suggestible: ''
type: ''
record-source: record-source:
label: record-source label: record-source
mappings: mappings: