(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
29 lines
561 B
Plaintext
29 lines
561 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||
|
||
[source, js]
|
||
----
|
||
const response = await client.indices.analyze({
|
||
tokenizer: "keyword",
|
||
char_filter: [
|
||
{
|
||
type: "mapping",
|
||
mappings: [
|
||
"٠ => 0",
|
||
"١ => 1",
|
||
"٢ => 2",
|
||
"٣ => 3",
|
||
"٤ => 4",
|
||
"٥ => 5",
|
||
"٦ => 6",
|
||
"٧ => 7",
|
||
"٨ => 8",
|
||
"٩ => 9",
|
||
],
|
||
},
|
||
],
|
||
text: "My license plate is ٢٥٠١٥",
|
||
});
|
||
console.log(response);
|
||
----
|