[Koha-bugs] [Bug 19893] Alternative optimized indexing for Elasticsearch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 11 18:09:28 CEST 2018


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

--- Comment #112 from David Gustafsson <glasklas at gmail.com> ---
Subfields to be joined (with space) can be defined within parenthesis in
"marc_field" like:

facet: ''
marc_field: 245(ab)cdef
marc_type: marc21
sort: 1
suggestible: '1'

An alternative, perhaps more flexible, way of defining them could instead be:

facet: ''
marc_field: 245cdef
subfields_join:
  - subfields: ab
    separator: ''
marc_type: marc21
sort: 1
suggestible: '1'

Perhaps sometimes you don't want space as an separator, if the subfields are
already formatted to be directly concatenated for example.

Tests should also be added, and I can probably do that tomorrow. Also had an
error involving missing normalizer "my_normalizer". Removed it from
field_config.yaml and worked. Don't know if this is a bug and in that case if
it has been reported. If wanting to try out this patch that line probably needs
to be removed.

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


More information about the Koha-bugs mailing list