https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25864 Bug ID: 25864 Summary: Case sensitivity breaks searching of some fields in ES5 Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Searching - Elasticsearch Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com In Elasticsearch.pm: 1161 # Force lower case on indexed field names for case insensitive 1162 # field name searches 1163 lc($search_field->name), But in QueryBuilder.pm 1172 push @search_fields, [ 1173 $search_field->name, Now that we pass 'fields' for all generic searches this breaks things in ES5 To recreate: 1 - Have Koha using ES5 and Elasticsearch as search engine 2 - Enable DumpTemplateVarsIntranet and DumpSearchQueryTemplate 3 - Do a search in authorities using 'Search entire record' (abduction if using sample db) 4 - Note no results 5 - View the page source and find 'search_query' 6 - Note the uppercased fields 7 - curl 'es:9200/koha_kohadev_authorities/data/417?pretty' 8 - Note all fields lower-cased -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.