Bugzilla – Attachment 171497 Details for
Bug 37871
Remove extraneous 246 subfields from the title mappings (Elasticsearch, MARC21)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37871: Remove extraneous 246 subfields from the title mappings (Elasticsearch, MARC21)
Bug-37871-Remove-extraneous-246-subfields-from-the.patch (text/plain), 3.23 KB, created by
Phil Ringnalda
on 2024-09-13 19:22:08 UTC
(
hide
)
Description:
Bug 37871: Remove extraneous 246 subfields from the title mappings (Elasticsearch, MARC21)
Filename:
MIME Type:
Creator:
Phil Ringnalda
Created:
2024-09-13 19:22:08 UTC
Size:
3.23 KB
patch
obsolete
>From 4d86899275d6cf4221c24d2c1f86910177180532 Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Fri, 13 Sep 2024 12:33:22 -0400 >Subject: [PATCH] Bug 37871: Remove extraneous 246 subfields from the title > mappings (Elasticsearch, MARC21) > >This patch limits indexing of field 246 to $a, $b, $n, and $p in >various title indexes. >Previously, all 246 subfields were indexed, including non-title >subfields such as $i (Display text), $g (Miscellaneous information), >and linking subfields, making the title index very large and giving >false results. > >To test: > >1. Add all the 246 subfields to the default bibliographic framework > 1.1. Go to Administration > MARC bibliographic framework > 1.2. Click Actions > MARC structure next to the Default framework > 1.3. Search for 246 > 1.4. Click Actions > Edit subfields > 1.5. For each subfield, make sure Editor is checked > 1.6. Click Save changes > >2. Create a new record and fill out all the 246 subfields > 2.1. Go to Cataloging > 2.2. Click New record > 2.3. Fill out the mandatory fields (000, 003, 005, 008, 040$c, > 245$a, 942$c) > 2.4. Fill out all the subfields in 246 (I simply write the name of > the subfield in the text field e.g. Display text in 246$i) > 2.5. Click Save > 2.6. Click Normal to access the detailed record > >3. View the Elastic search record > --> All the subfields (including "Display text", "Miscellaneous > information" and other non-title subfields) should be indexed in > - title > - title__suggestion > - title-abbreviated > - title-abbreviated__sort > - title expanded > - title-expanded__sort > - title-former > - title-former__sort > >4. Make a title or keyword search for "Display" (or whatever you wrote > in 246$i) > --> Your record should be in the results > >5. Apply patch > >6. Rebuild the index using -r > >koha-elasticsearch --rebuild -d -r -v kohadev > >7. Redo step 3 > --> Only 246 $a, $b, $n, and $p should be indexed > >8. Redo step 4 > --> Your record should NOT be in the results > >Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> >--- > admin/searchengine/elasticsearch/mappings.yaml | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index 17e513fb6f..8440add0cd 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -3819,7 +3819,7 @@ biblios: > sort: 1 > suggestible: 1 > - facet: '' >- marc_field: '246' >+ marc_field: 246abnp > marc_type: marc21 > sort: 0 > suggestible: 1 >@@ -4194,7 +4194,7 @@ biblios: > sort: 1 > suggestible: '' > - facet: '' >- marc_field: '246' >+ marc_field: 246abnp > marc_type: marc21 > sort: 1 > suggestible: '' >@@ -4235,7 +4235,7 @@ biblios: > sort: 1 > suggestible: '' > - facet: '' >- marc_field: '246' >+ marc_field: 246abnp > marc_type: marc21 > sort: 1 > suggestible: '' >@@ -4247,7 +4247,7 @@ biblios: > mandatory: ~ > mappings: > - facet: '' >- marc_field: '246' >+ marc_field: 246abnp > marc_type: marc21 > sort: 1 > suggestible: '' >-- >2.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37871
:
171219
|
171488
|
171497
|
172165