Bug 34504

Summary: Elasticsearch error when updating mappings
Product: Koha Reporter: Michaela Sieber <michaela.sieber>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 34625    
Bug Blocks:    

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.