https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22994 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This enhancement to search release notes| |lets you import an | |Elasticsearch mappings file | |using the staff interface | |and command line: | |- Staff interface: adds a | |new "Import mappings" | |button (Administration > | |Catalog > Search engine | |configuration | |(Elasticsearch)) | |- Command line: adds an | |option to the API to allow | |importing a mappings.yaml | |file* | | | |IMPORTANT: Importing a | |mappings.yaml file will | |overwrite the existing | |file, make sure you have a | |backup if required. | | | |* Example command to import | |a mappings.yaml file using | |the command line: | | | |curl -u koha:koha -X PUT -H | |'Content-Type: | |application/yaml' | |--data-binary | |@mappings.yaml | |http://127.0.0.1:8081/api/v | |1/config/search_mappings | | | |(Note: The ability to | |export the mappings.yaml | |file was added in Bug 22639 | |- Ability to export | |Elasticsearch mappings and | |facets settings, in Koha | |26.05.) CC| |david@davidnind.com --- Comment #8 from David Nind <david@davidnind.com> --- Testing notes (using KTD): 1. curl commands that worked for me using KTD: Step 4: curl -u koha:koha -H 'Accept: application/yaml' http://127.0.0.1:8081/api/v1/config/search_mappings > mappings.yaml Step 6: curl -u koha:koha -X PUT -H 'Content-Type: application/yaml' --data-binary @mappings.yaml http://127.0.0.1:8081/api/v1/config/search_mappings Step 7: curl -u koha:koha http://127.0.0.1:8081/api/v1/config/search_mappings 2. For steps 6 and 7, I got a stream of text on the screen. -- You are receiving this mail because: You are watching all bug changes.