Bug 40994 - Field 651 subfields other than "a" present in Topics facet
Summary: Field 651 subfields other than "a" present in Topics facet
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Lari Taskula
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-10 12:45 UTC by Lari Taskula
Modified: 2025-10-10 13:04 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40994: Index 651a instead of 651 (776 bytes, patch)
2025-10-10 12:48 UTC, Lari Taskula
Details | Diff | Splinter Review
Bug 40994: Remove 651 from facets (1.10 KB, patch)
2025-10-10 13:00 UTC, Lari Taskula
Details | Diff | Splinter Review
Bug 40994: Add 651a to facets (1.09 KB, patch)
2025-10-10 13:00 UTC, Lari Taskula
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lari Taskula 2025-10-10 12:45:37 UTC
To reproduce:

1. Start creating a new record
2. Populate the following field:

651:
_a Suomi
_2 yso/fin
_0 http://www.yso.fi/onto/yso/p94426

3. Save the record (and ensure the new record gets indexed)
4. On either OPAC or staff client, search for all records
5. Observe "Suomi", "yso/fin", "http://www.yso.fi/onto/yso/p94426" under "Topics" facet

How it should be:

4. On either OPAC or staff client, search for all records
5. Observe "Suomi" under "Topics" facet
Comment 1 Lari Taskula 2025-10-10 12:48:47 UTC Comment hidden (obsolete)
Comment 2 Lari Taskula 2025-10-10 13:00:13 UTC
Created attachment 187732 [details] [review]
Bug 40994: Remove 651 from facets

1. Start creating a new record
2. Populate the following field:

651:
_a Suomi
_2 yso/fin
_0 http://www.yso.fi/onto/yso/p94426

3. Save the record (and ensure the new record gets indexed)
4. On either OPAC or staff client, search for su:yso/fin
5. Observe your record in the results
6. Observe there are no "Suomi", "yso/fin", or the link under "Topics" facet
Comment 3 Lari Taskula 2025-10-10 13:00:14 UTC
Created attachment 187733 [details] [review]
Bug 40994: Add 651a to facets

To test:

1. Start creating a new record
2. Populate the following field:

651:
_a Suomi
_2 yso/fin
_0 http://www.yso.fi/onto/yso/p94426

3. Save the record (and ensure the new record gets indexed)
4. On either OPAC or staff client, search for all records
5. Observe "Suomi" under "Topics" facet
Comment 4 Lari Taskula 2025-10-10 13:03:51 UTC
I'm not sure why the entire 651 field is in the subject index in the first place. The above patches maintain the entire field in the search index as it is, but change 651a to be the only subfield to be faceted under "Topics".