diff --git a/openml_OS/libraries/ElasticSearch.php b/openml_OS/libraries/ElasticSearch.php index 98629073..c43ddfd7 100644 --- a/openml_OS/libraries/ElasticSearch.php +++ b/openml_OS/libraries/ElasticSearch.php @@ -169,6 +169,14 @@ public function initialize(){ 'type' => 'date', 'format' => 'yyyy-MM-dd HH:mm:ss' ), + 'first_name' => array( + 'type' => 'keyword', + 'normalizer' => 'lowercase_normalizer' + ), + 'last_name' => array( + 'type' => 'keyword', + 'normalizer' => 'lowercase_normalizer' + ), 'suggest' => array( 'type' => 'completion', 'analyzer' => 'standard' @@ -387,6 +395,14 @@ public function initialize_index($t) { 'index' => array( 'number_of_shards' => 1, 'number_of_replicas' => 0 + ), + 'analysis' => array( + 'normalizer' => array( + 'lowercase_normalizer' => array( + 'type' => 'custom', + 'filter' => array('lowercase') + ) + ) ) ), 'mappings' => array(