Skip to content

Commit 990afd0

Browse files
committed
Consistent encoder names (#29492)
This commit updates encoder names to be consistent within documentation and align with snake casing convention. (cherry picked from commit e2b665c)
1 parent f45b17d commit 990afd0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/plugins/analysis-phonetic.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ The `phonetic` token filter takes the following settings:
1717
`encoder`::
1818

1919
Which phonetic encoder to use. Accepts `metaphone` (default),
20-
`doublemetaphone`, `soundex`, `refinedsoundex`, `caverphone1`,
20+
`double_metaphone`, `soundex`, `refined_soundex`, `caverphone1`,
2121
`caverphone2`, `cologne`, `nysiis`, `koelnerphonetik`, `haasephonetik`,
22-
`beidermorse`, `daitch_mokotoff`.
22+
`beider_morse`, `daitch_mokotoff`.
2323

2424
`replace`::
2525

2626
Whether or not the original token should be replaced by the phonetic
2727
token. Accepts `true` (default) and `false`. Not supported by
28-
`beidermorse` encoding.
28+
`beider_morse` encoding.
2929

3030
[source,js]
3131
--------------------------------------------------

plugins/analysis-phonetic/src/test/resources/org/elasticsearch/index/analysis/phonetic-1.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ index:
33
filter:
44
doublemetaphonefilter:
55
type: phonetic
6-
encoder: doublemetaphone
6+
encoder: double_metaphone
77
metaphonefilter:
88
type: phonetic
99
encoder: metaphone
@@ -12,16 +12,16 @@ index:
1212
encoder: soundex
1313
refinedsoundexfilter:
1414
type: phonetic
15-
encoder: refinedsoundex
15+
encoder: refined_soundex
1616
caverphonefilter:
1717
type: phonetic
1818
encoder: caverphone
1919
beidermorsefilter:
2020
type: phonetic
21-
encoder: beidermorse
21+
encoder: beider_morse
2222
beidermorsefilterfrench:
2323
type: phonetic
24-
encoder: beidermorse
24+
encoder: beider_morse
2525
languageset : [ "french" ]
2626
koelnerphonetikfilter:
2727
type: phonetic

0 commit comments

Comments
 (0)