Bugzilla – Attachment 171488 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.17 KB, created by
Caroline Cyr La Rose
on 2024-09-13 16:34:10 UTC
(
hide
)
Description:
Bug 37871: Remove extraneous 246 subfields from the title mappings (Elasticsearch, MARC21)
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2024-09-13 16:34:10 UTC
Size:
3.17 KB
patch
obsolete
>From 5d9afe119416906913f5af9575eff16b85159099 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 >--- > 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.34.1
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