| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | * Return the report title |
| 22 | 22 | * |
| 23 | 23 | * @return string |
| 24 | 24 | */ |
| 25 | - public function get_title() : string { | |
| 25 | + public function get_title(): string { | |
| 26 | 26 | return __( 'Elasticsearch Indices', 'elasticpress' ); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | * Return the report fields |
| 31 | 31 | * |
| 32 | 32 | * @return array |
| 33 | 33 | */ |
| 34 | - public function get_groups() : array { | |
| 34 | + public function get_groups(): array { | |
| 35 | 35 | $elasticsearch = \ElasticPress\Elasticsearch::factory(); |
| 36 | 36 | |
| 37 | 37 | $should_have_indices = $elasticsearch->get_index_names(); |
| 38 | 38 | $indices_in_es = $elasticsearch->get_cluster_indices(); |
| @@ -76,8 +76,23 @@ | ||
| 76 | 76 | |
| 77 | 77 | $fields['total_fields_limit'] = [ |
| 78 | 78 | 'label' => 'total_fields_limit', |
| 79 | 79 | 'value' => $elasticsearch->get_index_total_fields_limit( $index['index'] ), |
| 80 | + ]; | |
| 81 | + | |
| 82 | + $fields['analyzer_language'] = [ | |
| 83 | + 'label' => 'analyzer_language', | |
| 84 | + 'value' => $elasticsearch->get_index_setting( $index['index'], 'index.analysis.analyzer.default.language' ), | |
| 85 | + ]; | |
| 86 | + | |
| 87 | + $fields['stop_language'] = [ | |
| 88 | + 'label' => 'stop_language', | |
| 89 | + 'value' => $elasticsearch->get_index_setting( $index['index'], 'index.analysis.filter.ep_stop.stopwords' ), | |
| 90 | + ]; | |
| 91 | + | |
| 92 | + $fields['snowball_language'] = [ | |
| 93 | + 'label' => 'snowball_language', | |
| 94 | + 'value' => $elasticsearch->get_index_setting( $index['index'], 'index.analysis.filter.ewp_snowball.language' ), | |
| 80 | 95 | ]; |
| 81 | 96 | |
| 82 | 97 | $groups[] = [ |
| 83 | 98 | 'title' => $index['index'], |