| @@ -48,9 +48,9 @@ | ||
| 48 | 48 | 'analyzer' => [ |
| 49 | 49 | 'default' => [ |
| 50 | 50 | 'tokenizer' => 'standard', |
| 51 | 51 | /* This filter is documented in includes/mappings/post/7-0.php */ |
| 52 | - 'filter' => apply_filters( 'ep_default_analyzer_filters', [ 'standard', 'ewp_word_delimiter', 'lowercase', 'ep_stop', 'ewp_snowball' ] ), | |
| 52 | + 'filter' => apply_filters( 'ep_default_analyzer_filters', [ 'standard', 'ewp_word_delimiter', 'lowercase', 'ep_stop', 'ewp_snowball', 'ep_asciifolding' ] ), | |
| 53 | 53 | /* This filter is documented in includes/mappings/post/7-0.php */ |
| 54 | 54 | 'language' => apply_filters( 'ep_analyzer_language', 'english', 'analyzer_default' ), |
| 55 | 55 | ], |
| 56 | 56 | 'default_search' => [ |
| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | ], |
| 56 | 56 | 'default_search' => [ |
| 57 | 57 | 'tokenizer' => 'standard', |
| 58 | 58 | /* This filter is documented in includes/mappings/post/7-0.php */ |
| 59 | - 'filter' => apply_filters( 'ep_default_search_analyzer_filters', [ 'lowercase', 'ep_stop', 'ewp_snowball' ] ), | |
| 59 | + 'filter' => apply_filters( 'ep_default_search_analyzer_filters', [ 'lowercase', 'ep_stop', 'ewp_snowball', 'ep_asciifolding' ] ), | |
| 60 | 60 | /* This filter is documented in includes/mappings/post/7-0.php */ |
| 61 | 61 | 'char_filter' => apply_filters( 'ep_default_search_analyzer_char_filters', [ 'html_strip' ] ), |
| 62 | 62 | /* This filter is documented above */ |
| 63 | 63 | 'language' => apply_filters( 'ep_analyzer_language', 'english', 'analyzer_default' ), |
| @@ -98,8 +98,12 @@ | ||
| 98 | 98 | 'type' => 'stop', |
| 99 | 99 | 'ignore_case' => true, |
| 100 | 100 | /* This filter is documented in includes/mappings/post/7-0.php */ |
| 101 | 101 | 'stopwords' => apply_filters( 'ep_analyzer_language', 'english', 'filter_ep_stop' ), |
| 102 | + ], | |
| 103 | + 'ep_asciifolding' => [ | |
| 104 | + 'type' => 'asciifolding', | |
| 105 | + 'preserve_original' => true, | |
| 102 | 106 | ], |
| 103 | 107 | ], |
| 104 | 108 | 'normalizer' => [ |
| 105 | 109 | 'lowerasciinormalizer' => [ |