Bug 34504 - Elasticsearch error when updating mappings
Summary: Elasticsearch error when updating mappings
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on: 34625
Blocks:
  Show dependency treegraph
 
Reported: 2023-08-09 06:51 UTC by Michaela Sieber
Modified: 2024-07-04 20:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michaela Sieber 2023-08-09 06:51:36 UTC
Since 23.05 it is not possible to add MARC fields to search fields in the Mapping table in staff interface.

To recreate:

 Administration > Search engine configuration (Elasticsearch) 

Tab Bibliographic records:

Add a new line , (e.g. abstract > 942v).

See that in drop down for 'Sortable' you can select "1", "0", or "Undef" instead of "Yes" or "No".

Click the "Add" Button - the line appears (last entry)

Save.

Error Message:

" You attempted to delete all mappings for a required index, you must leave at least one mapping 

 An error occurred when updating mappings: . "
Comment 1 Galen Charlton 2023-09-06 14:46:39 UTC
The failure to save the search mappings when adding (or deleting) a mapping appears to be resolved by the patch for bug 34625.

That just leaves the Undef/1/0 rather than Yes/No for the sortable column when adding a new mapping as the remaining issue.
Comment 2 Katrin Fischer 2023-10-29 12:00:06 UTC
I just tested and believe this was fixed by patches on other bugs. The sortable pull down now shows Yes/No.