Added/updated snippets for docs (#2318)
This commit is contained in:
28
docs/doc_examples/9f286416f1b18940f13cb27ab5c8458e.asciidoc
Normal file
28
docs/doc_examples/9f286416f1b18940f13cb27ab5c8458e.asciidoc
Normal file
@ -0,0 +1,28 @@
|
||||
// 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.create({
|
||||
index: "my-index-000001",
|
||||
settings: {
|
||||
analysis: {
|
||||
analyzer: {
|
||||
my_analyzer: {
|
||||
tokenizer: "keyword",
|
||||
filter: ["my_pattern_replace_filter"],
|
||||
},
|
||||
},
|
||||
filter: {
|
||||
my_pattern_replace_filter: {
|
||||
type: "pattern_replace",
|
||||
pattern: "[£|€]",
|
||||
replacement: "",
|
||||
all: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user