OpenML
OpenML copied to clipboard
ElasticSearch user mapping: first name and last name should use a normalizer to allow case-insensitive sort
Fixes: #1199
This pull request updates the Elasticsearch configuration in openml_OS/libraries/ElasticSearch.php to improve the indexing and search capabilities for user names. The main changes are the addition of new fields for first and last names with case-insensitive keyword indexing, and the introduction of a custom normalizer to ensure consistent lowercase storage and querying.
Elasticsearch mapping improvements:
- Added
first_nameandlast_namefields to the mapping, both using thekeywordtype and alowercase_normalizerfor case-insensitive searches.
Elasticsearch analysis configuration:
- Introduced a
lowercase_normalizerin the index analysis settings, defined as a custom normalizer with a lowercase filter, to support the new case-insensitive keyword fields.