| @@ -47,12 +47,22 @@ | ||
| 47 | 47 | 'analysis' => [ |
| 48 | 48 | 'analyzer' => [ |
| 49 | 49 | 'default' => [ |
| 50 | 50 | 'tokenizer' => 'standard', |
| 51 | - 'filter' => [ 'standard', 'ewp_word_delimiter', 'lowercase', 'ep_stop', 'ewp_snowball' ], | |
| 52 | 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', 'ep_asciifolding' ] ), | |
| 53 | + /* This filter is documented in includes/mappings/post/7-0.php */ | |
| 53 | 54 | 'language' => apply_filters( 'ep_analyzer_language', 'english', 'analyzer_default' ), |
| 54 | 55 | ], |
| 56 | + 'default_search' => [ | |
| 57 | + 'tokenizer' => 'standard', | |
| 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', 'ep_asciifolding' ] ), | |
| 60 | + /* This filter is documented in includes/mappings/post/7-0.php */ | |
| 61 | + 'char_filter' => apply_filters( 'ep_default_search_analyzer_char_filters', [ 'html_strip' ] ), | |
| 62 | + /* This filter is documented above */ | |
| 63 | + 'language' => apply_filters( 'ep_analyzer_language', 'english', 'analyzer_default' ), | |
| 64 | + ], | |
| 55 | 65 | 'shingle_analyzer' => [ |
| 56 | 66 | 'type' => 'custom', |
| 57 | 67 | 'tokenizer' => 'standard', |
| 58 | 68 | 'filter' => [ 'lowercase', 'shingle_filter' ], |
| @@ -88,8 +98,12 @@ | ||
| 88 | 98 | 'type' => 'stop', |
| 89 | 99 | 'ignore_case' => true, |
| 90 | 100 | /* This filter is documented in includes/mappings/post/7-0.php */ |
| 91 | 101 | 'stopwords' => apply_filters( 'ep_analyzer_language', 'english', 'filter_ep_stop' ), |
| 102 | + ], | |
| 103 | + 'ep_asciifolding' => [ | |
| 104 | + 'type' => 'asciifolding', | |
| 105 | + 'preserve_original' => true, | |
| 92 | 106 | ], |
| 93 | 107 | ], |
| 94 | 108 | 'normalizer' => [ |
| 95 | 109 | 'lowerasciinormalizer' => [ |