[Koha-bugs] [Bug 23828] Elasticsearch - ES - Authority record results not ordered correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 11 21:46:15 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23828

Myka Kennedy Stephens <mkstephens at lancasterseminary.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkstephens at lancasterseminar
                   |                            |y.edu

--- Comment #1 from Myka Kennedy Stephens <mkstephens at lancasterseminary.edu> ---
Part of this issue is resolved by tweaking the mappings for authorities in ES.
The current community authority mappings are indexing MARC fields and subfields
as strings. 
Example: 110(abcdefghjklnpqstvxyz) is mapped to Heading.
When "Catholic Church" is used for "Search main heading," the result list looks
like this (subfields added for clarity):
- $a Catholic Church $x Clergy $v Biography
- $a Catholic Church $z Italy $x Clergy $v Biography
- $a Catholic Church $x Doctrines
- $a Catholic Church $x Fiction
- $a Catholic Church $v Pastoral letters and charges
- $a Catholic Church $x Adult Education $v Periodicals

It is ordering them this way because they are indexed with the subfields in
alphabetical order -- despite the fact that the subfields do not appear in
alphabetical order in the record.

When 110 is mapped to Heading, without the (abcd...), the result list looks
like this:
- Catholic Church Adult Education Periodicals
- Catholic Church Adult Education United States
- Catholic Church Clergy Biography
- Catholic Church Doctrines
- Catholic Church Fiction
- Catholic Church Italy Clergy Biography

WHAT IS STILL A BUG >
If a heading has a period in it, it will still appear after all the headings
without a period. In the Catholic Church example, some authority records use a
period: 
Catholic Church. Archdiocese of San Salvador (El Salvador). Archbishop
(1977-1980 : Romero)
That particular heading and all others that follow a similar format will not
appear in the results list alphabetically. It appears at the end after all
"Catholic Church" headings that do not use a period.
We should probably be escaping punctuation when searching and/or indexing
authorities.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list