Skip to content

Commit

Permalink
Merge pull request #2872 from rebeccahum/add/char_filter_filter
Browse files Browse the repository at this point in the history
Add new filter ep_default_analyzer_char_filter
  • Loading branch information
felipeelia authored Jul 1, 2022
2 parents 306f836 + bcee68c commit 892bc73
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion includes/mappings/post/5-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@
* @return {array<string>} New filters
*/
'filter' => apply_filters( 'ep_default_analyzer_filters', array( 'standard', 'ewp_word_delimiter', 'lowercase', 'stop', 'ewp_snowball' ) ),
'char_filter' => array( 'html_strip' ),
/**
* Filter Elasticsearch default analyzer's char_filter
*
* @since 4.3.0
* @hook ep_default_analyzer_char_filters
* @param {array<string>} $char_filters Default filter
* @return {array<string>} New filters
*/
'char_filter' => apply_filters( 'ep_default_analyzer_char_filters', array( 'html_strip' ) ),
/**
* Filter Elasticsearch default language in mapping
*
Expand Down
10 changes: 9 additions & 1 deletion includes/mappings/post/7-0.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@
* @return {array<string>} New filters
*/
'filter' => apply_filters( 'ep_default_analyzer_filters', array( 'ewp_word_delimiter', 'lowercase', 'stop', 'ewp_snowball' ) ),
'char_filter' => array( 'html_strip' ),
/**
* Filter Elasticsearch default analyzer's char_filter
*
* @since 4.3.0
* @hook ep_default_analyzer_char_filters
* @param {array<string>} $char_filters Default filter
* @return {array<string>} New filters
*/
'char_filter' => apply_filters( 'ep_default_analyzer_char_filters', array( 'html_strip' ) ),
/**
* Filter Elasticsearch default language in mapping
*
Expand Down

0 comments on commit 892bc73

Please sign in to comment.