Added/updated snippets for docs (#2318)
This commit is contained in:
27
docs/doc_examples/080c34d8151d02b760571e3a2899fa97.asciidoc
Normal file
27
docs/doc_examples/080c34d8151d02b760571e3a2899fa97.asciidoc
Normal file
@ -0,0 +1,27 @@
|
||||
// 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: "test",
|
||||
settings: {
|
||||
analysis: {
|
||||
filter: {
|
||||
email: {
|
||||
type: "pattern_capture",
|
||||
preserve_original: true,
|
||||
patterns: ["([^@]+)", "(\\p{L}+)", "(\\d+)", "@(.+)"],
|
||||
},
|
||||
},
|
||||
analyzer: {
|
||||
email: {
|
||||
tokenizer: "uax_url_email",
|
||||
filter: ["email", "lowercase", "unique"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user