[Koha-bugs] [Bug 23204] Script for exporting Elasticsearch mappings to YAML

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 25 18:17:07 CET 2020


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

--- Comment #22 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #20)
> I think the exported file must export exactly the same file as the one we
> embed with Koha.
> 
> % perl misc/search_tools/export_elasticsearch_mappings.pl >
> /tmp/mappings.yaml
> % diff admin/searchengine/elasticsearch/mappings.yaml /tmp/mappings.yaml
> Should return no change.
> 
> Don't you think?

Yes and no - ordering fixed most, and not adding undefined weights or
facet_order, but there are some remaining differences:
1 - Facet order not set in default file
2 - LC-card-number - comes out in lower case because we have it twice, once for
authorities and once for biblios - these get combined when adding to DB because
they all go in to 'search_field' which doesn't separate bibs/auths - I don't
think the matters. There does seem to be convention of Auth fields being
capitalized and bibs fields not, but I don't believe we rely on this or need to
3 - Default mapping file is not strictly alphabetized - date-of-publication
moves on export

Probably a good compromise is to generate the mapping file from this bug once
it passes QA and use the exported file as the default from now on. Consider it
a cleanup of the file

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


More information about the Koha-bugs mailing list