Files
elasticsearch-js/docs/doc_examples/360c4f373e72ba861584ee85bd218124.asciidoc
2024-07-29 17:10:05 -05:00

32 lines
600 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.create({
index: "test_index",
settings: {
analysis: {
analyzer: {
my_analyzer: {
tokenizer: "standard",
filter: ["lowercase", "porter_stem"],
},
},
},
},
mappings: {
properties: {
query: {
type: "percolator",
},
body: {
type: "text",
analyzer: "my_analyzer",
},
},
},
});
console.log(response);
----